63 lines
2.8 KiB
C#
63 lines
2.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Security.Permissions
|
|
{
|
|
/// <summary>Represents the enumerator for <see cref="T:System.Security.Permissions.KeyContainerPermissionAccessEntry" /> objects in a <see cref="T:System.Security.Permissions.KeyContainerPermissionAccessEntryCollection" />.</summary>
|
|
// Token: 0x02000557 RID: 1367
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public sealed class KeyContainerPermissionAccessEntryEnumerator : IEnumerator
|
|
{
|
|
// Token: 0x060031F6 RID: 12790 RVA: 0x000AB98C File Offset: 0x000A9B8C
|
|
internal KeyContainerPermissionAccessEntryEnumerator(ArrayList list)
|
|
{
|
|
this.e = list.GetEnumerator();
|
|
}
|
|
|
|
/// <summary>Gets the current object in the collection.</summary>
|
|
/// <returns>The current object in the collection.</returns>
|
|
// Token: 0x170009CA RID: 2506
|
|
// (get) Token: 0x060031F7 RID: 12791 RVA: 0x000AB9A0 File Offset: 0x000A9BA0
|
|
object IEnumerator.Current
|
|
{
|
|
get
|
|
{
|
|
return this.e.Current;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the current entry in the collection.</summary>
|
|
/// <returns>The current <see cref="T:System.Security.Permissions.KeyContainerPermissionAccessEntry" /> object in the collection.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator.Current" /> property is accessed before first calling the <see cref="M:System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator.MoveNext" /> method. The cursor is located before the first object in the collection.-or- The <see cref="P:System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator.Current" /> property is accessed after a call to the <see cref="M:System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator.MoveNext" /> method returns false, which indicates that the cursor is located after the last object in the collection. </exception>
|
|
// Token: 0x170009CB RID: 2507
|
|
// (get) Token: 0x060031F8 RID: 12792 RVA: 0x000AB9B0 File Offset: 0x000A9BB0
|
|
public KeyContainerPermissionAccessEntry Current
|
|
{
|
|
get
|
|
{
|
|
return (KeyContainerPermissionAccessEntry)this.e.Current;
|
|
}
|
|
}
|
|
|
|
/// <summary>Moves to the next element in the collection.</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>
|
|
// Token: 0x060031F9 RID: 12793 RVA: 0x000AB9C4 File Offset: 0x000A9BC4
|
|
public bool MoveNext()
|
|
{
|
|
return this.e.MoveNext();
|
|
}
|
|
|
|
/// <summary>Resets the enumerator to the beginning of the collection.</summary>
|
|
// Token: 0x060031FA RID: 12794 RVA: 0x000AB9D4 File Offset: 0x000A9BD4
|
|
public void Reset()
|
|
{
|
|
this.e.Reset();
|
|
}
|
|
|
|
// Token: 0x0400147B RID: 5243
|
|
private IEnumerator e;
|
|
}
|
|
}
|