Beispiel #1
0
 private MemberwiseEqualityComparer(EqualityFunctionGenerator equalityFunctionGenerator)
 {
     _equalsFunc      = equalityFunctionGenerator.MakeEqualsMethod <T>();
     _getHashCodeFunc = equalityFunctionGenerator.MakeGetHashCodeMethod <T>();
 }
Beispiel #2
0
 public static MemberwiseEqualityComparer <T> Custom(EqualityFunctionGenerator equalityFunctionGenerator)
 {
     return(new MemberwiseEqualityComparer <T>(equalityFunctionGenerator));
 }