This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class PredicateEqualityComparer<T> : EqualityComparer<T> | |
| { | |
| private readonly Func<T, T, bool> predicate; | |
| public PredicateEqualityComparer(Func<T, T, bool> predicate) | |
| { | |
| this.predicate = predicate; | |
| } | |
| public override bool Equals(T x, T y) |
NewerOlder