MemberInfoComparer Class

Namespace
Kampute.DocToolkit.Metadata
Assembly
  • Kampute.DocToolkit.dll

Definition

Compares MemberInfo instances for equality based on their metadata.
public sealed class MemberInfoComparer : IEqualityComparer<MemberInfo>
Inheritance
Implements

Remarks

This comparer considers various aspects of MemberInfo and Type instances, including generic parameters, array ranks, and element types, to determine equality.

It also provides a robust hash code generation mechanism that aligns with the equality comparison logic.

Properties

InstanceGets the singleton instance of the MemberInfoComparer.

Methods

Equals(MemberInfo, MemberInfo)Determines whether the specified members are equal.
GetHashCode(MemberInfo)Returns a hash code for the specified member.