Example #1
0
 /// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
 public void Dispose()
 {
     this.bag = null;
 }
Example #2
0
 /// <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();
 }