Show / Hide Table of Contents

Class MemberInfoSlimEqualityComparator

Equality comparer for slim representations of member reflection objects.

Inheritance
System.Object
MemberInfoSlimEqualityComparator
Implements
System.Collections.Generic.IEqualityComparer<MemberInfoSlim>
Namespace: System.Reflection
Assembly: Nuqleon.Linq.Expressions.Bonsai.dll
Syntax
public class MemberInfoSlimEqualityComparator : Object, IEqualityComparer<MemberInfoSlim>

Constructors

MemberInfoSlimEqualityComparator(IEqualityComparer<TypeSlim>)

Instantiates the comparer with a type comparer, used to assert equality and get hashcodes for slim representations of types.

Declaration
public MemberInfoSlimEqualityComparator(IEqualityComparer<TypeSlim> typeComparer)
Parameters
Type Name Description
System.Collections.Generic.IEqualityComparer<TypeSlim> typeComparer

The slim type equality comparer.

Methods

Equals(MemberInfoSlim, MemberInfoSlim)

Compares two slim member reflection objects.

Declaration
public bool Equals(MemberInfoSlim x, MemberInfoSlim y)
Parameters
Type Name Description
MemberInfoSlim x

The left slim member.

MemberInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsConstructor(ConstructorInfoSlim, ConstructorInfoSlim)

Compares two slim constructor reflection objects.

Declaration
protected virtual bool EqualsConstructor(ConstructorInfoSlim x, ConstructorInfoSlim y)
Parameters
Type Name Description
ConstructorInfoSlim x

The left slim member.

ConstructorInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsCustom(MemberInfoSlim, MemberInfoSlim)

Compares two slim custom member reflection objects.

Declaration
protected virtual bool EqualsCustom(MemberInfoSlim x, MemberInfoSlim y)
Parameters
Type Name Description
MemberInfoSlim x

The left slim member.

MemberInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsEvent(MemberInfoSlim, MemberInfoSlim)

Compares two slim event reflection objects.

Declaration
protected virtual bool EqualsEvent(MemberInfoSlim x, MemberInfoSlim y)
Parameters
Type Name Description
MemberInfoSlim x

The left slim member.

MemberInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsExtension(MemberInfoSlim, MemberInfoSlim)

Compares two slim extension member reflection objects.

Declaration
protected virtual bool EqualsExtension(MemberInfoSlim x, MemberInfoSlim y)
Parameters
Type Name Description
MemberInfoSlim x

The left slim member.

MemberInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsField(FieldInfoSlim, FieldInfoSlim)

Compares two slim field reflection objects.

Declaration
protected virtual bool EqualsField(FieldInfoSlim x, FieldInfoSlim y)
Parameters
Type Name Description
FieldInfoSlim x

The left slim member.

FieldInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsGenericDefinitionMethod(GenericDefinitionMethodInfoSlim, GenericDefinitionMethodInfoSlim)

Compares two slim generic method definition reflection objects.

Declaration
protected virtual bool EqualsGenericDefinitionMethod(GenericDefinitionMethodInfoSlim x, GenericDefinitionMethodInfoSlim y)
Parameters
Type Name Description
GenericDefinitionMethodInfoSlim x

The left slim member.

GenericDefinitionMethodInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsGenericMethod(GenericMethodInfoSlim, GenericMethodInfoSlim)

Compares two slim generic method reflection objects.

Declaration
protected virtual bool EqualsGenericMethod(GenericMethodInfoSlim x, GenericMethodInfoSlim y)
Parameters
Type Name Description
GenericMethodInfoSlim x

The left slim member.

GenericMethodInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsMethodExtension(MethodInfoSlim, MethodInfoSlim)

Compares two slim extension method reflection objects.

Declaration
protected virtual bool EqualsMethodExtension(MethodInfoSlim x, MethodInfoSlim y)
Parameters
Type Name Description
MethodInfoSlim x

The left slim member.

MethodInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsNestedType(MemberInfoSlim, MemberInfoSlim)

Compares two slim nested type reflection objects.

Declaration
protected virtual bool EqualsNestedType(MemberInfoSlim x, MemberInfoSlim y)
Parameters
Type Name Description
MemberInfoSlim x

The left slim member.

MemberInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsProperty(PropertyInfoSlim, PropertyInfoSlim)

Compares two slim property reflection objects.

Declaration
protected virtual bool EqualsProperty(PropertyInfoSlim x, PropertyInfoSlim y)
Parameters
Type Name Description
PropertyInfoSlim x

The left slim member.

PropertyInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsSimpleMethod(SimpleMethodInfoSlim, SimpleMethodInfoSlim)

Compares two slim simple method reflection objects.

Declaration
protected virtual bool EqualsSimpleMethod(SimpleMethodInfoSlim x, SimpleMethodInfoSlim y)
Parameters
Type Name Description
SimpleMethodInfoSlim x

The left slim member.

SimpleMethodInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsSimpleMethodBase(SimpleMethodInfoSlimBase, SimpleMethodInfoSlimBase)

Compares two slim base simple method reflection objects.

Declaration
protected virtual bool EqualsSimpleMethodBase(SimpleMethodInfoSlimBase x, SimpleMethodInfoSlimBase y)
Parameters
Type Name Description
SimpleMethodInfoSlimBase x

The left slim member.

SimpleMethodInfoSlimBase y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

EqualsTypeInfo(MemberInfoSlim, MemberInfoSlim)

Compares two slim type info reflection objects.

Declaration
protected virtual bool EqualsTypeInfo(MemberInfoSlim x, MemberInfoSlim y)
Parameters
Type Name Description
MemberInfoSlim x

The left slim member.

MemberInfoSlim y

The right slim member.

Returns
Type Description
System.Boolean

true if the slim representations are equal, false otherwise.

GetHashCode(MemberInfoSlim)

Gets a hash code of a slim member reflection object.

Declaration
public int GetHashCode(MemberInfoSlim obj)
Parameters
Type Name Description
MemberInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeConstructor(ConstructorInfoSlim)

Gets a hash code of a slim constructor reflection object.

Declaration
protected virtual int GetHashCodeConstructor(ConstructorInfoSlim obj)
Parameters
Type Name Description
ConstructorInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeCustom(MemberInfoSlim)

Gets a hash code of a slim custom member reflection object.

Declaration
protected virtual int GetHashCodeCustom(MemberInfoSlim obj)
Parameters
Type Name Description
MemberInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeEvent(MemberInfoSlim)

Gets a hash code of a slim event reflection object.

Declaration
protected virtual int GetHashCodeEvent(MemberInfoSlim obj)
Parameters
Type Name Description
MemberInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeExtension(MemberInfoSlim)

Gets a hash code of a slim extension member reflection object.

Declaration
protected virtual int GetHashCodeExtension(MemberInfoSlim obj)
Parameters
Type Name Description
MemberInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeField(FieldInfoSlim)

Gets a hash code of a slim field reflection object.

Declaration
protected virtual int GetHashCodeField(FieldInfoSlim obj)
Parameters
Type Name Description
FieldInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeGenericDefinitionMethod(GenericDefinitionMethodInfoSlim)

Gets a hash code of a slim generic method definition reflection object.

Declaration
protected virtual int GetHashCodeGenericDefinitionMethod(GenericDefinitionMethodInfoSlim obj)
Parameters
Type Name Description
GenericDefinitionMethodInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeGenericMethod(GenericMethodInfoSlim)

Gets a hash code of a slim generic method reflection object.

Declaration
protected virtual int GetHashCodeGenericMethod(GenericMethodInfoSlim obj)
Parameters
Type Name Description
GenericMethodInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeMethodExtension(MethodInfoSlim)

Gets a hash code of a slim extension method reflection object.

Declaration
protected virtual int GetHashCodeMethodExtension(MethodInfoSlim obj)
Parameters
Type Name Description
MethodInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeNestedType(MemberInfoSlim)

Gets a hash code of a slim nested type reflection object.

Declaration
protected virtual int GetHashCodeNestedType(MemberInfoSlim obj)
Parameters
Type Name Description
MemberInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeProperty(PropertyInfoSlim)

Gets a hash code of a slim property reflection object.

Declaration
protected virtual int GetHashCodeProperty(PropertyInfoSlim obj)
Parameters
Type Name Description
PropertyInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeSimpleMethod(SimpleMethodInfoSlim)

Gets a hash code of a slim simple method reflection object.

Declaration
protected virtual int GetHashCodeSimpleMethod(SimpleMethodInfoSlim obj)
Parameters
Type Name Description
SimpleMethodInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeSimpleMethodBase(SimpleMethodInfoSlimBase)

Gets a hash code of a slim base simple method reflection object.

Declaration
protected virtual int GetHashCodeSimpleMethodBase(SimpleMethodInfoSlimBase obj)
Parameters
Type Name Description
SimpleMethodInfoSlimBase obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

GetHashCodeTypeInfo(MemberInfoSlim)

Gets a hash code of a slim type info reflection object.

Declaration
protected virtual int GetHashCodeTypeInfo(MemberInfoSlim obj)
Parameters
Type Name Description
MemberInfoSlim obj

The slim member.

Returns
Type Description
System.Int32

The hash code of the slim member.

Implements

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