Essentially I want to do this:
var myKeys = new List<MyKey>();
var myDict = new Dictionary<MyKey, int>(myKeys.Distinct(),0); // where 0 is default value.
edit: lol nevermind, I had somehow missed the obvious answer \/ - was too deep in the actual problem this dictionary was for that I managed overlook the ToDictionary!
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.