using System; using System.Collections; namespace System.Security.Cryptography { /// Provides the ability to navigate through an object. This class cannot be inherited. // Token: 0x020002A9 RID: 681 public sealed class OidEnumerator : IEnumerator { // Token: 0x060018E1 RID: 6369 RVA: 0x000554D0 File Offset: 0x000536D0 internal OidEnumerator(OidCollection collection) { this._collection = collection; this._position = -1; } /// Gets the current object in an object. /// The current object. // Token: 0x170007CB RID: 1995 // (get) Token: 0x060018E2 RID: 6370 RVA: 0x000554E8 File Offset: 0x000536E8 object IEnumerator.Current { get { if (this._position < 0) { throw new ArgumentOutOfRangeException(); } return this._collection[this._position]; } } /// Gets the current object in an object. /// The current object in the collection. // Token: 0x170007CC RID: 1996 // (get) Token: 0x060018E3 RID: 6371 RVA: 0x00055510 File Offset: 0x00053710 public Oid Current { get { if (this._position < 0) { throw new ArgumentOutOfRangeException(); } return this._collection[this._position]; } } /// Advances to the next object in an object. /// true, if the enumerator was successfully advanced to the next element; false, if the enumerator has passed the end of the collection. /// The collection was modified after the enumerator was created. // Token: 0x060018E4 RID: 6372 RVA: 0x00055538 File Offset: 0x00053738 public bool MoveNext() { if (++this._position < this._collection.Count) { return true; } this._position = this._collection.Count - 1; return false; } /// Sets an enumerator to its initial position. /// The collection was modified after the enumerator was created. // Token: 0x060018E5 RID: 6373 RVA: 0x0005557C File Offset: 0x0005377C public void Reset() { this._position = -1; } // Token: 0x040013BF RID: 5055 private OidCollection _collection; // Token: 0x040013C0 RID: 5056 private int _position; } }