using System;
using System.Collections;
namespace System.Security.Cryptography.X509Certificates
{
/// Supports a simple iteration over a object. This class cannot be inherited.
// Token: 0x0200028A RID: 650
public sealed class X509Certificate2Enumerator : IEnumerator
{
// Token: 0x060017E6 RID: 6118 RVA: 0x00050C38 File Offset: 0x0004EE38
internal X509Certificate2Enumerator(X509Certificate2Collection collection)
{
this.enumerator = ((IEnumerable)collection).GetEnumerator();
}
/// For a description of this member, see .
/// The current element in the object.
/// The enumerator is positioned before the first element of the collection or after the last element.
// Token: 0x17000788 RID: 1928
// (get) Token: 0x060017E7 RID: 6119 RVA: 0x00050C4C File Offset: 0x0004EE4C
object IEnumerator.Current
{
get
{
return this.enumerator.Current;
}
}
/// For a description of this member, see .
/// 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: 0x060017E8 RID: 6120 RVA: 0x00050C5C File Offset: 0x0004EE5C
bool IEnumerator.MoveNext()
{
return this.enumerator.MoveNext();
}
/// For a description of this member, see .
/// The collection was modified after the enumerator was created.
// Token: 0x060017E9 RID: 6121 RVA: 0x00050C6C File Offset: 0x0004EE6C
void IEnumerator.Reset()
{
this.enumerator.Reset();
}
/// Gets the current element in the object.
/// The current element in the object.
/// The enumerator is positioned before the first element of the collection or after the last element.
// Token: 0x17000789 RID: 1929
// (get) Token: 0x060017EA RID: 6122 RVA: 0x00050C7C File Offset: 0x0004EE7C
public X509Certificate2 Current
{
get
{
return (X509Certificate2)this.enumerator.Current;
}
}
/// Advances the enumerator to the next element in the 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: 0x060017EB RID: 6123 RVA: 0x00050C90 File Offset: 0x0004EE90
public bool MoveNext()
{
return this.enumerator.MoveNext();
}
/// Sets the enumerator to its initial position, which is before the first element in the object.
/// The collection was modified after the enumerator was created.
// Token: 0x060017EC RID: 6124 RVA: 0x00050CA0 File Offset: 0x0004EEA0
public void Reset()
{
this.enumerator.Reset();
}
// Token: 0x04001305 RID: 4869
private IEnumerator enumerator;
}
}