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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
IEquatable<T>looks the same as yourISomeKindOfCompare<T>. That is, it lets you ask “is this object equal to someT?”.