Base types, Collections, Diagnostics, IO, RegEx…
Time for another interesting snippet, in which the code itself doesn't appear bad at first glance, but again: the coder seems to be making an assumption about the way they have constructed the code, which is incorrect. And in fact, it's not an appropriate design. And yes, this gets the fxcop nod, but spot the problem before trying that out.
"Summer", "Autumn", "Winter"}
Public Shared Sub PrintSeasons()
For Each season As String In ValidSeasons
The question with this one is: what's the assumption, and what's bad about it?
PingBack from http://quickdietsite.info/story.php?id=13353