Just recording the following for those lost coding souls like me who are trying to find a solution on the web 🙂
I needed to instantiate a SortedSet for a WinRT application that I am writing. I didn’t want to create a new class that implements an IComparer (just being lazy). I thought that a simple lambda should suffice for the job at hand. After some digging, I found that .NET 4.5 that was just released, offers this capability.
var sorted = new SortedSet<Foo>(Comparer<Foo>.Create((x, y) => x.Bar.CompareTo(y.Bar)));
Hopefully this will help someone!
As part of the BrainExpanded project, I’m building an iOS app that lets users easily…
Artificial Intelligence (AI) has rapidly evolved over the past few decades, becoming an integral part…
Happy New Year everyone! I was planning for my next BrainExpanded post to be a…
See "BrainExpanded - Introduction" for context on this post. Notes and links Over the years,…
This is the first post, in what I think is going to be a series,…
Back in February, I shared the results of some initial experimentation with a digital twin.…