66 lines
3.2 KiB
C#
66 lines
3.2 KiB
C#
using System;
|
|
using System.Collections;
|
|
|
|
namespace System.Security.Cryptography.X509Certificates
|
|
{
|
|
/// <summary>Supports a simple iteration over an <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />. This class cannot be inherited.</summary>
|
|
// Token: 0x02000290 RID: 656
|
|
public sealed class X509ChainElementEnumerator : IEnumerator
|
|
{
|
|
// Token: 0x0600183D RID: 6205 RVA: 0x00052750 File Offset: 0x00050950
|
|
internal X509ChainElementEnumerator(IEnumerable enumerable)
|
|
{
|
|
this.enumerator = enumerable.GetEnumerator();
|
|
}
|
|
|
|
/// <summary>Gets the current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</summary>
|
|
/// <returns>The current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element. </exception>
|
|
// Token: 0x1700079C RID: 1948
|
|
// (get) Token: 0x0600183E RID: 6206 RVA: 0x00052764 File Offset: 0x00050964
|
|
object IEnumerator.Current
|
|
{
|
|
get
|
|
{
|
|
return this.enumerator.Current;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</summary>
|
|
/// <returns>The current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element. </exception>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
|
|
/// </PermissionSet>
|
|
// Token: 0x1700079D RID: 1949
|
|
// (get) Token: 0x0600183F RID: 6207 RVA: 0x00052774 File Offset: 0x00050974
|
|
public X509ChainElement Current
|
|
{
|
|
get
|
|
{
|
|
return (X509ChainElement)this.enumerator.Current;
|
|
}
|
|
}
|
|
|
|
/// <summary>Advances the enumerator to the next element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" />.</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: 0x06001840 RID: 6208 RVA: 0x00052788 File Offset: 0x00050988
|
|
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.X509ChainElementCollection" />.</summary>
|
|
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created. </exception>
|
|
// Token: 0x06001841 RID: 6209 RVA: 0x00052798 File Offset: 0x00050998
|
|
public void Reset()
|
|
{
|
|
this.enumerator.Reset();
|
|
}
|
|
|
|
// Token: 0x0400131B RID: 4891
|
|
private IEnumerator enumerator;
|
|
}
|
|
}
|