/// <summary> /// Releases the managed resources. /// </summary> protected override void DisposeManagedResources() { base.DisposeManagedResources(); enumerator.Dispose(); sequenceStream?.Dispose(); }
/// <summary> /// Releases the managed resources. /// </summary> protected override void DisposeManagedResources() { base.DisposeManagedResources(); if (sequenceStream != null) { sequenceStream.Dispose(); } }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { sequenceStream.Dispose(); }