Denumerating the DayOfWeekEnum
by in CodeSOD on 2012-07-26"When I first found this custom 'enum'," writes Garrett Hopp," I had assumed that my predecessor had re-implemented the DayOfWeek Enumeration. I suppose that wouldn't be that big of a WTF as discovering the built-in DayOfWeek
does involve using a search engine... which many developers seem to struggle with."
"But upon closer inspection, I realized it's a bit more than that, and is a really clever way to write (int) DateTime.Now.DayOfWeek
. After all, that'd just be lazy."