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

Dispose() public method

Release all resources used by the current instance of the IncrementalHash class.
public Dispose ( ) : void
return void
        public void Dispose()
        {
            _disposed = true;

            if (_hash != null)
            {
                _hash.Dispose();
                _hash = null;
            }
        }

Usage Example

        // The Hash and HashSize properties are not overridden since the correct values are returned from base.

        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _incrementalHash.Dispose();
            }
            base.Dispose(disposing);
        }