If you want to convert an IEnumerable to a dictionary using LINQ then do:
Dictionary<string, object> dict = myList.ToDictionary(a => a.MyString, a => a.MyObject);
Yeah, that's exactly what I needed! thanks
Super, works perfectly!
Yeah, that's exactly what I needed!
ReplyDeletethanks
Super, works perfectly!
ReplyDelete