All Books 93 Stack Overflow 82 Daily Thoughts 78 Ionic 61 Miscellaneou$ 60 Quick tips 43 CodeProject 36 NodeJS 27 Programming 22 JavaScript 18

Proper singleton implementation in C#

Taken from: http://msdn.microsoft.com/en-us/library/ff650316.aspx public class Singleton { private static Singleton instance; private Singleton() {} public static Singleton Instance { get { if (instance == null) { instance =…

How to use App.config in Visual Studio C# .NET

Add reference to System.Configuration : and include it using the using statement: using System.Configuration; Edit App.config so that you add your settings in the appSettings  node in an add  element with key  and value  parameters.…