DateTime.Now Causes Boxing

added by liranc
8/2/2010 2:31:27 PM

0 Kicks, 118 Views

Have you known that every time you call DateTime.Now the BCL causes a dynamic memory allocation due to unnecessary boxing? This post dives into the implementation of the property, explain why this boxing occurs, and what can we do to in order to avoid id