System.Security.Cryptography.MD5CryptoServiceProvider.Dispose C# (CSharp) Method

Dispose() protected final method

protected final Dispose ( bool disposing ) : void
disposing bool
return void
        protected override sealed void Dispose(bool disposing)
        {
            if (disposing)
            {
                _incrementalHash.Dispose();
                base.Dispose(disposing);
            }
        }

Usage Example

コード例 #1
0
 public static string GetMd5String(byte[] buffer)
 {
     System.Security.Cryptography.MD5 md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
     byte[] retVal = md5.ComputeHash(buffer);
     md5.Dispose();
     return(BitConverter.ToString(retVal).Replace("-", ""));
 }
All Usage Examples Of System.Security.Cryptography.MD5CryptoServiceProvider::Dispose