scripts
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
|
||||
namespace System.Collections.Specialized
|
||||
{
|
||||
/// <summary>Supports a simple iteration over a <see cref="T:System.Collections.Specialized.StringCollection" />.</summary>
|
||||
// Token: 0x0200003B RID: 59
|
||||
public class StringEnumerator
|
||||
{
|
||||
// Token: 0x06000290 RID: 656 RVA: 0x00009294 File Offset: 0x00007494
|
||||
internal StringEnumerator(StringCollection coll)
|
||||
{
|
||||
this.enumerable = ((IEnumerable)coll).GetEnumerator();
|
||||
}
|
||||
|
||||
/// <summary>Gets the current element in the collection.</summary>
|
||||
/// <returns>The current element in the collection.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element. </exception>
|
||||
// Token: 0x170000B8 RID: 184
|
||||
// (get) Token: 0x06000291 RID: 657 RVA: 0x000092A8 File Offset: 0x000074A8
|
||||
public string Current
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)this.enumerable.Current;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Advances the enumerator to the next element of 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>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created. </exception>
|
||||
// Token: 0x06000292 RID: 658 RVA: 0x000092BC File Offset: 0x000074BC
|
||||
public bool MoveNext()
|
||||
{
|
||||
return this.enumerable.MoveNext();
|
||||
}
|
||||
|
||||
/// <summary>Sets the enumerator to its initial position, which is before the first element in the collection.</summary>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created. </exception>
|
||||
// Token: 0x06000293 RID: 659 RVA: 0x000092CC File Offset: 0x000074CC
|
||||
public void Reset()
|
||||
{
|
||||
this.enumerable.Reset();
|
||||
}
|
||||
|
||||
// Token: 0x040000B4 RID: 180
|
||||
private IEnumerator enumerable;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user