public static IEqualityComparer<HashSetEx<T>> CreateSetComparer() { if (_setComparer == null) _setComparer = new HashSetEqualityComparer(); return _setComparer; }
// Equals method for the comparer itself. public override bool Equals(object?obj) { HashSetEqualityComparer <T>?comparer = obj as HashSetEqualityComparer <T>; if (comparer == null) { return(false); } return(_comparer == comparer._comparer); }
private static bool PatchMethod <T>(ref IEqualityComparer <HashSet <T> > __result) { __result = new HashSetEqualityComparer <T>(); return(false); }