Class MemberInfoNameComparer
Compares System.Reflection.MemberInfo instances.
Inheritance
System.Object
MemberInfoNameComparer
Implements
System.Collections.Generic.IEqualityComparer<System.Reflection.MemberInfo>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SemanticComparison
Assembly: SemanticComparison.dll
Syntax
public class MemberInfoNameComparer : IEqualityComparer<MemberInfo>
Methods
| Improve this Doc View SourceEquals(MemberInfo, MemberInfo)
Compares two System.Reflection.MemberInfo instances for equality.
Declaration
public bool Equals(MemberInfo x, MemberInfo y)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MemberInfo | x | The first instance to compare. |
System.Reflection.MemberInfo | y | The second instance to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
GetHashCode(MemberInfo)
Returns the hash code of the System.Reflection.MemberInfo instance's System.Reflection.MemberInfo.Name.
Declaration
public int GetHashCode(MemberInfo obj)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MemberInfo | obj | The System.Reflection.MemberInfo for which to return a hash code. |
Returns
Type | Description |
---|---|
System.Int32 | The hash code of the System.Reflection.MemberInfo instance's System.Reflection.MemberInfo.Name. |
Implements
System.Collections.Generic.IEqualityComparer<T>