Exemplo n.º 1
0
        public static MD5ClassLock2 GetInstance()
        {
            if (null == _md5Class)
            {
                lock (_syncObj)
                {
                    if (null == _md5Class)
                    {
                        _md5Class = new MD5ClassLock2();
                    }
                }
            }

            return _md5Class;
        }
 public void initialize()
 {
     _md5 = MD5ClassLock2.GetInstance();
 }
 public void finalize()
 {
     _md5 = null;
 }