Class StructuralMemberInfoEqualityComparator
MemberInfo comparer for structural types.
Implements
Inherited Members
Namespace: System.Reflection
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public class StructuralMemberInfoEqualityComparator : MemberInfoEqualityComparer, IEqualityComparer<MemberInfo>
Constructors
StructuralMemberInfoEqualityComparator()
Instantiates a MemberInfo comparer for structural type members, using the default structural type comparer.
Declaration
public StructuralMemberInfoEqualityComparator()
StructuralMemberInfoEqualityComparator(IEqualityComparer<Type>)
Instantiates a MemberInfo comparer for structural type members, using the given type comparer.
Declaration
public StructuralMemberInfoEqualityComparator(IEqualityComparer<Type> typeComparer)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEqualityComparer<System.Type> | typeComparer |
Properties
TypeComparer
The type comparer to use when testing member return types, etc.
Declaration
public IEqualityComparer<Type> TypeComparer { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEqualityComparer<System.Type> |
Methods
EqualsConstructor(ConstructorInfo, ConstructorInfo)
Checks for structural equality of constructors.
Declaration
protected override bool EqualsConstructor(ConstructorInfo x, ConstructorInfo y)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.ConstructorInfo | x | The left constructor. |
System.Reflection.ConstructorInfo | y | The right constructor. |
Returns
Type | Description |
---|---|
System.Boolean | true if the constructors are structurally equivalent, false otherwise. |
Overrides
EqualsField(FieldInfo, FieldInfo)
Checks for structural equality of fields.
Declaration
protected override bool EqualsField(FieldInfo x, FieldInfo y)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | x | The left field. |
System.Reflection.FieldInfo | y | The right field. |
Returns
Type | Description |
---|---|
System.Boolean | true if the fields are structurally equivalent, false otherwise. |
Overrides
EqualsMethod(MethodInfo, MethodInfo)
Checks for structural equality of methods.
Declaration
protected override bool EqualsMethod(MethodInfo x, MethodInfo y)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | x | The left method. |
System.Reflection.MethodInfo | y | The right method. |
Returns
Type | Description |
---|---|
System.Boolean | true if the methods are structurally equivalent, false otherwise. |
Overrides
EqualsProperty(PropertyInfo, PropertyInfo)
Checks for structural equality of properties.
Declaration
protected override bool EqualsProperty(PropertyInfo x, PropertyInfo y)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.PropertyInfo | x | The left property. |
System.Reflection.PropertyInfo | y | The right property. |
Returns
Type | Description |
---|---|
System.Boolean | true if the properties are structurally equivalent, false otherwise. |