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

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