Class MemberInfoEqualityComparer
public class MemberInfoEqualityComparer : IEqualityComparer<MemberInfo>
- Inheritance
-
MemberInfoEqualityComparer
- Implements
- Extension Methods
Fields
Default
public static readonly MemberInfoEqualityComparer Default
Field Value
Methods
Equals(MemberInfo?, MemberInfo?)
Determines whether the specified objects are equal.
public bool Equals(MemberInfo? x, MemberInfo? y)
Parameters
xMemberInfoThe first object of type
Tto compare.yMemberInfoThe second object of type
Tto compare.
Returns
- bool
true if the specified objects are equal; otherwise, false.
GetHashCode(MemberInfo)
Returns a hash code for the specified object.
public int GetHashCode(MemberInfo obj)
Parameters
objMemberInfoThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.