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