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