Stupid things in the .NET framework
- Published October 8th, 2006 in /dev/random
This one is really stupid and made me lost several hours around it. The DateTime class provides a non static method for adding days (AddDays()). Since it’s not static it’s supposed to act over the object itself. Guess what? It doesn’t. It returns another instance of the DateTime class!
Oh dear…




postsink…
Your article has been sent to postsink! Congratulations :-)…