Show / Hide Table of Contents

Class StructuralSubstitutingTypeComparator

Comparator for structural types, obtaining a dictionary of type substitutions between the left and right side of type comparisons.

Inheritance
System.Object
TypeEqualityComparer
StructuralTypeEqualityComparator
StructuralSubstitutingTypeComparator
Implements
System.Collections.Generic.IEqualityComparer<System.Type>
Inherited Members
StructuralTypeEqualityComparator.Equals(Type, Type)
StructuralTypeEqualityComparator.AreStructurallyComparable(Type, Type)
StructuralTypeEqualityComparator.MemberComparer
StructuralTypeEqualityComparator.TypeMap
TypeEqualityComparer.EqualsArray(Type, Type)
TypeEqualityComparer.EqualsArrayVector(Type, Type)
TypeEqualityComparer.EqualsArrayMultidimensional(Type, Type)
TypeEqualityComparer.EqualsGeneric(Type, Type)
TypeEqualityComparer.EqualsGenericTypeDefinition(Type, Type)
TypeEqualityComparer.EqualsGenericClosed(Type, Type)
TypeEqualityComparer.Equals(IEnumerable<Type>, IEnumerable<Type>)
TypeEqualityComparer.Equals(Type[], Type[])
TypeEqualityComparer.EqualsGenericParameter(Type, Type)
TypeEqualityComparer.EqualsByRef(Type, Type)
TypeEqualityComparer.EqualsPointer(Type, Type)
TypeEqualityComparer.EqualsSimple(Type, Type)
TypeEqualityComparer.GetHashCode(Type)
TypeEqualityComparer.GetHashCodeArray(Type)
TypeEqualityComparer.GetHashCodeArrayVector(Type)
TypeEqualityComparer.GetHashCodeArrayMultidimensional(Type)
TypeEqualityComparer.GetHashCodeGeneric(Type)
TypeEqualityComparer.GetHashCodeGenericTypeDefinition(Type)
TypeEqualityComparer.GetHashCodeGenericClosed(Type)
TypeEqualityComparer.GetHashCodeGenericParameter(Type)
TypeEqualityComparer.GetHashCodeByRef(Type)
TypeEqualityComparer.GetHashCodePointer(Type)
TypeEqualityComparer.GetHashCodeSimple(Type)
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

true if both types are considered equal; otherwise, false.

Overrides
StructuralTypeEqualityComparator.EqualsStructural(Type, Type)

Implements

System.Collections.Generic.IEqualityComparer<>
In This Article
Back to top Generated by DocFX