78 lines
2.9 KiB
C#
78 lines
2.9 KiB
C#
using System;
|
|
using System.Collections;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Provides the ability to navigate through an <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object. This class cannot be inherited.</summary>
|
|
// Token: 0x020002A6 RID: 678
|
|
public sealed class AsnEncodedDataEnumerator : IEnumerator
|
|
{
|
|
// Token: 0x060018C4 RID: 6340 RVA: 0x00054E74 File Offset: 0x00053074
|
|
internal AsnEncodedDataEnumerator(AsnEncodedDataCollection collection)
|
|
{
|
|
this._collection = collection;
|
|
this._position = -1;
|
|
}
|
|
|
|
/// <summary>Gets the current <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object in an <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object.</summary>
|
|
/// <returns>The current <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</returns>
|
|
// Token: 0x170007C1 RID: 1985
|
|
// (get) Token: 0x060018C5 RID: 6341 RVA: 0x00054E8C File Offset: 0x0005308C
|
|
object IEnumerator.Current
|
|
{
|
|
get
|
|
{
|
|
if (this._position < 0)
|
|
{
|
|
throw new ArgumentOutOfRangeException();
|
|
}
|
|
return this._collection[this._position];
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the current <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object in an <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object.</summary>
|
|
/// <returns>The current <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object in the collection.</returns>
|
|
// Token: 0x170007C2 RID: 1986
|
|
// (get) Token: 0x060018C6 RID: 6342 RVA: 0x00054EB4 File Offset: 0x000530B4
|
|
public AsnEncodedData Current
|
|
{
|
|
get
|
|
{
|
|
if (this._position < 0)
|
|
{
|
|
throw new ArgumentOutOfRangeException();
|
|
}
|
|
return this._collection[this._position];
|
|
}
|
|
}
|
|
|
|
/// <summary>Advances to the next <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object in an <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object.</summary>
|
|
/// <returns>true, if the enumerator was successfully advanced to the next element; false, if the enumerator has passed the end of the collection.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
|
|
// Token: 0x060018C7 RID: 6343 RVA: 0x00054EDC File Offset: 0x000530DC
|
|
public bool MoveNext()
|
|
{
|
|
if (++this._position < this._collection.Count)
|
|
{
|
|
return true;
|
|
}
|
|
this._position = this._collection.Count - 1;
|
|
return false;
|
|
}
|
|
|
|
/// <summary>Sets an enumerator to its initial position.</summary>
|
|
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
|
|
// Token: 0x060018C8 RID: 6344 RVA: 0x00054F20 File Offset: 0x00053120
|
|
public void Reset()
|
|
{
|
|
this._position = -1;
|
|
}
|
|
|
|
// Token: 0x040013A3 RID: 5027
|
|
private AsnEncodedDataCollection _collection;
|
|
|
|
// Token: 0x040013A4 RID: 5028
|
|
private int _position;
|
|
}
|
|
}
|