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