website stat

Stupid things in the .NET framework

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…


1 Response to “Stupid things in the .NET framework”

  1. Anonymous
    Published at November 14th, 2006 at 5:29 am

    postsink…

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