Пример #1
0
        /// <summary>
        /// Redefinition of Dispose method.
        /// </summary>
        /// <param name="disposing">Disposing flag.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (this.disposedValue)
            {
                return;
            }

            if (disposing)
            {
                this.list        = null;
                this.currentNode = null;
            }

            this.disposedValue = true;
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomEnumerator{T}"/> class.
 /// </summary>
 /// <param name="list">Implemented list.</param>
 /// <param name="root">The currentNode node of list.</param>
 public CustomEnumerator(ParentEnumerable <T> list, Node <T> root)
 {
     this.list        = list;
     this.currentNode = root;
 }