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
x
MemberInfoThe first object of type
T
to compare.y
MemberInfoThe second object of type
T
to 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
obj
MemberInfoThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.