/// <summary> /// Releases all resources used by the current instance of the <see cref="Ripemd160Sha256"/> class. /// </summary> public void Dispose() { if (!isDisposed) { if (!(rip is null)) { rip.Dispose(); } rip = null; if (!(sha is null)) { sha.Dispose(); } sha = null; isDisposed = true; } }
/// <summary> /// Releases the resources used by the <see cref="Ripemd160Sha256"/> class. /// </summary> /// <param name="disposing"> /// True to release both managed and unmanaged resources; false to release only unmanaged resources. /// </param> protected virtual void Dispose(bool disposing) { if (!isDisposed) { if (disposing) { if (!(rip is null)) { rip.Dispose(); } rip = null; if (!(sha is null)) { sha.Dispose(); } sha = null; } isDisposed = true; } }
/// <summary> /// Initializes a new instance of the <see cref="Ripemd160Sha256"/>. /// </summary> public Ripemd160Sha256() { rip = new Ripemd160(); sha = new Sha256(); }