コード例 #1
0
        /// <summary>
        /// Releases the managed resources.
        /// </summary>
        protected override void DisposeManagedResources()
        {
            base.DisposeManagedResources();

            enumerator.Dispose();

            sequenceStream?.Dispose();
        }
コード例 #2
0
        /// <summary>
        /// Releases the managed resources.
        /// </summary>
        protected override void DisposeManagedResources()
        {
            base.DisposeManagedResources();

            if (sequenceStream != null)
            {
                sequenceStream.Dispose();
            }
        }
コード例 #3
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     sequenceStream.Dispose();
 }