Exemple #1
0
 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;
 }
Exemple #2
0
        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);
        }