public static SingletonClass GetInstance(string keyPhrase) { lock (_locker) { if (_instance == null) { _instance = new SingletonClass(keyPhrase); } return(_instance); } //if (_instance == null) //{ // _instance = new SingletonClass(keyPhrase); //} //return _instance; }