Example #1
0
    public static IEqualityComparer<HashSetEx<T>> CreateSetComparer()
    {
      if (_setComparer == null)
        _setComparer = new HashSetEqualityComparer();

      return _setComparer;
    }
Example #2
0
        // 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);
        }
Example #3
0
 private static bool PatchMethod <T>(ref IEqualityComparer <HashSet <T> > __result)
 {
     __result = new HashSetEqualityComparer <T>();
     return(false);
 }