which is equivalent to
interface ISomeKindOfCompare<T>
{
bool Matches(T item);
}
I know IComparer and IEqualityComparer and so on, but that's not what I am looking for.
which is equivalent to
interface ISomeKindOfCompare<T>
{
bool Matches(T item);
}
I know IComparer and IEqualityComparer and so on, but that's not what I am looking for.
IEquatable<T> looks the same as your ISomeKindOfCompare<T>. That is, it lets you ask "is this object equal to some T?".