Cannot create comparer [Answered]
I'm trying to make a comparer to pass around but it's refusing to let me define it. Here's the code
Card in this case being
I've tried doing it as a lambda and it complained it wasn't a delegate. So instead I give it a func, and now it's telling me it cannot convert it to a comparer. What am I missing here?
3 Replies
you need to do
Comparer.Create(func)
Aaaaah, that makes sense. Thanks.
✅ This post has been marked as answered!