예제 #1
0
파일: CRC32.cs 프로젝트: symform/crimson
 public static new CRC32 Create(string hashName)
 {
     object o = CryptoConfig.CreateFromName (hashName);
     // in case machine.config isn't configured to use any CRC32 implementation
     if (o == null) {
         o = new CRC32Native ();
     }
     return (CRC32) o;
 }
예제 #2
0
        public static new CRC32 Create(string hashName)
        {
            object o = CryptoConfig.CreateFromName(hashName);

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