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