Beispiel #1
0
        public static CreateID GetInstance()
        {
            if (_instance == null)
            {
                lock (syncRoot)
                {
                    if (_instance == null)
                    {
                        _instance = new CreateID();
                    }
                }
            }

            return(_instance);
        }
Beispiel #2
0
 public SingtonKey()
 {
     CreateID createID     = CreateID.GetInstance();
     string   strUniqueNum = createID.CreateUniqueID();
 }