title: Put the knife down and take a green herb, dude. |
descrip: One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com Using 89% of the same design the blog had in 2001. |
FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white. As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green. |
|
x
MarkUpDown is the best Markdown editor for professionals on Windows 10. It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support. Features you won't find anywhere else include...
You've wasted more than $15 of your time looking for a great Markdown editor. Stop looking. MarkUpDown is the app you're looking for. Learn more or head over to the 'Store now! |
|
Thursday, August 04, 2022 | |
I've run into there being two different sets of collections in .NET before, generic vs. well, vs. not (?), but never really sat down to understand it. They are very different. From stackoverflow.com:
Ugh. From an MSDN link in that answer:
Here they are: This means LINQ works on the latter but not the former. Luckily There are similar issues with many collection types, reviewed in some detail on that page, including From microsoft.com:
Which includes a quick follow-up on
That said, Using that example
So notice that there's no LINQ here, so we can't But the dictionary IS enumerable. Well, kinda. The So we can foreach through Note that the
Now our generic
Here endeth the lesson. And begineth another -- quick update from this SO answer:
That appears to be true!
Labels: .NET, LINQ, noteToSelf posted by ruffin at 8/04/2022 02:34:00 PM |
|
| |
All posts can be accessed here: Just the last year o' posts: |
||||||||||||||||||||||
|