.NET: How to create IComparer from anonymous Comparison This is an off-site link.  Please review our Terms of Service for additional information.

(Nuno Freitas) There are several functions in .NET that require an IComparer and thus cannot use a Comparison delegate, anonymous or otherwise. Starting with .NET 4.5 there is a new method to create a Comparer from an anonymous Comparison.

Read this article...

comments powered by Disqus