public static DESEncrypt CreateInstance() { if (uniqueInstance == null) { lock (locker) { if (uniqueInstance == null) { uniqueInstance = new DESEncrypt(); } } } return uniqueInstance; }
private SqlHelper() { string constring = ConfigurationManager.AppSettings["sqlcon"]; this.connectionString = DESEncrypt.CreateInstance().Decrypt(constring); }