Exemplo n.º 1
0
 public static Md5Encrypt CreateInstance()
 {
     if (uniqueInstance == null)
     {
         lock (locker)
         {
             if (uniqueInstance == null)
             {
                 uniqueInstance = new Md5Encrypt();
             }
         }
     }
     return uniqueInstance;
 }
Exemplo n.º 2
0
 public static Md5Encrypt CreateInstance()
 {
     if (uniqueInstance == null)
     {
         lock (locker)
         {
             if (uniqueInstance == null)
             {
                 uniqueInstance = new Md5Encrypt();
             }
         }
     }
     return(uniqueInstance);
 }