Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StorageProviderBase&lt;T&gt;.StorageProviderIterator&lt;T&gt;"/> class.
 /// </summary>
 /// <param name="provider">The provider.</param>
 /// <param name="index">The index.</param>
 /// <param name="count">The count.</param>
 public StorageProviderIterator(StorageProviderBase <TData> provider, int index, int count)
 {
     this.list          = provider;
     this.startIndex    = index;
     this.index         = index - 1;
     this.endIndex      = this.index + count;
     this.version       = list.Version;
     this.originalIndex = index;
     this.originalCount = count;
 }
Beispiel #2
0
 /// <summary>
 /// Releases unmanaged and - optionally - managed resources
 /// </summary>
 /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
 protected virtual void Dispose(bool disposing)
 {
     currentElement = default(TData);
     list           = null;
 }