Saturday, November 30, 2013

what is the difference between implementation of DateTime.Now method ??

The .Now property of the DateTime class is static, which means there is only one copy of the property instead of a copy per instance of the class. There would be no advantage to having a copy on each instance as they would all return the same value since the value of .Now is independent of the other properties of the DateTime class. Hope this makes more sense now.


- HomeGrownCoder My posts are kept as simple as possible for easier understanding. In many cases you can probably optimize or spruce up what I present. Have fun coding!


No comments:

Post a Comment