66 lines
3.1 KiB
C#
66 lines
3.1 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.X509ExtensionCollection" />. This class cannot be inherited.</summary>
|
|
// Token: 0x02000297 RID: 663
|
|
public sealed class X509ExtensionEnumerator : IEnumerator
|
|
{
|
|
// Token: 0x06001873 RID: 6259 RVA: 0x00053338 File Offset: 0x00051538
|
|
internal X509ExtensionEnumerator(ArrayList list)
|
|
{
|
|
this.enumerator = list.GetEnumerator();
|
|
}
|
|
|
|
/// <summary>Gets an object from a collection.</summary>
|
|
/// <returns>The current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ExtensionCollection" />.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element. </exception>
|
|
// Token: 0x170007AF RID: 1967
|
|
// (get) Token: 0x06001874 RID: 6260 RVA: 0x0005334C File Offset: 0x0005154C
|
|
object IEnumerator.Current
|
|
{
|
|
get
|
|
{
|
|
return this.enumerator.Current;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ExtensionCollection" />.</summary>
|
|
/// <returns>The current element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ExtensionCollection" />.</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: 0x170007B0 RID: 1968
|
|
// (get) Token: 0x06001875 RID: 6261 RVA: 0x0005335C File Offset: 0x0005155C
|
|
public X509Extension Current
|
|
{
|
|
get
|
|
{
|
|
return (X509Extension)this.enumerator.Current;
|
|
}
|
|
}
|
|
|
|
/// <summary>Advances the enumerator to the next element in the <see cref="T:System.Security.Cryptography.X509Certificates.X509ExtensionCollection" />.</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: 0x06001876 RID: 6262 RVA: 0x00053370 File Offset: 0x00051570
|
|
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.X509ExtensionCollection" />.</summary>
|
|
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created. </exception>
|
|
// Token: 0x06001877 RID: 6263 RVA: 0x00053380 File Offset: 0x00051580
|
|
public void Reset()
|
|
{
|
|
this.enumerator.Reset();
|
|
}
|
|
|
|
// Token: 0x04001345 RID: 4933
|
|
private IEnumerator enumerator;
|
|
}
|
|
}
|