示例#1
0
文件: CRC32B.cs 项目: symform/crimson
 public static new CRC32B Create(string hashName)
 {
     object o = CryptoConfig.CreateFromName (hashName);
     // in case machine.config isn't configured to use any CRC32B implementation
     if (o == null) {
         o = new CRC32BNative ();
     }
     return (CRC32B) o;
 }
示例#2
0
文件: CRC32B.cs 项目: huaan21/crimson
        public static new CRC32B Create(string hashName)
        {
            object o = CryptoConfig.CreateFromName(hashName);

            // in case machine.config isn't configured to use any CRC32B implementation
            if (o == null)
            {
                o = new CRC32BNative();
            }
            return((CRC32B)o);
        }