System.Security.Cryptography.MD5CryptoServiceProvider.Dispose C# (CSharp) Méthode

Dispose() protected final méthode

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

Usage Example

Exemple #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