Class StructuralSubstitutingTypeComparator
Comparator for structural types, obtaining a dictionary of type substitutions between the left and right side of type comparisons.
Inheritance
System.Object
StructuralSubstitutingTypeComparator
Implements
System.Collections.Generic.IEqualityComparer<System.Type>
Inherited Members
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public class StructuralSubstitutingTypeComparator : StructuralTypeEqualityComparator, IEqualityComparer<Type>
Constructors
StructuralSubstitutingTypeComparator()
Creates a new comparator for structural types.
Declaration
public StructuralSubstitutingTypeComparator()
Properties
Substitutions
Gets a dictionary of discovered type substitutions.
Declaration
public IDictionary<Type, Type> Substitutions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Type, System.Type> |
Methods
EqualsStructural(Type, Type)
Compares two structural types.
Declaration
protected override bool EqualsStructural(Type definingType, Type bindingType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | definingType | Type defining the structure (left-hand side). |
System.Type | bindingType | Type being bound (right-hand side). |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Implements
System.Collections.Generic.IEqualityComparer<>