• Ishtiyaq Sheikh's blog

    Initialization in static constructor

      I am implementing initialization of some static data properties of a class. The static data properties should be initialized only once. It can be used in multi threaded read scenarios. So the initialization should be thread safe. It looks like...
  • Ishtiyaq Sheikh's blog

    Adding time to DateTime instance

      Recently, I wrote code for adding seconds to a DateTime instance something like this: DateTime time = DateTime.Now; time.AddSeconds(100); In the first round of unit test, I realize that it is not working correctly. A quick reference...
Page 1 of 1 (2 items)