/// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary> public void Dispose() { this.bag = null; }
/// <summary>Initializes a new instance of the <see cref="BagEnumerator{T}"/> class.</summary> /// <param name="bag">The bag.</param> public BagEnumerator(Bag <T> bag) { this.bag = bag; this.Reset(); }