using System.Collections.Generic; using System.Reflection; namespace Unity.VisualScripting { /// /// A member info comparer that will ignore the ReflectedType /// property by relying on the metadata token for comparison. /// public class MemberInfoComparer : EqualityComparer { public override bool Equals(MemberInfo x, MemberInfo y) { return x?.MetadataToken == y?.MetadataToken; } public override int GetHashCode(MemberInfo obj) { return obj.MetadataToken; } } }