m
This commit is contained in:
@@ -0,0 +1,328 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Collections.Generic
|
||||
{
|
||||
/// <summary>Represents a variable size last-in-first-out (LIFO) collection of instances of the same specified type.</summary>
|
||||
/// <typeparam name="T">Specifies the type of elements in the stack.</typeparam>
|
||||
// Token: 0x0200036A RID: 874
|
||||
[Token(Token = "0x200036A")]
|
||||
[DebuggerDisplay("Count = {Count}")]
|
||||
[DebuggerTypeProxy(typeof(StackDebugView<>))]
|
||||
[Serializable]
|
||||
public class Stack<T> : IEnumerable<T>, IEnumerable, ICollection, IReadOnlyCollection<T>
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Generic.Stack`1" /> class that is empty and has the default initial capacity.</summary>
|
||||
// Token: 0x06001758 RID: 5976 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001758")]
|
||||
[Address(RVA = "0x2F00540", Offset = "0x2EFF540", VA = "0x182F00540")]
|
||||
public Stack()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Generic.Stack`1" /> class that is empty and has the specified initial capacity or the default initial capacity, whichever is greater.</summary>
|
||||
/// <param name="capacity">The initial number of elements that the <see cref="T:System.Collections.Generic.Stack`1" /> can contain.</param>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="capacity" /> is less than zero.</exception>
|
||||
// Token: 0x06001759 RID: 5977 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001759")]
|
||||
[Address(RVA = "0x35D0BF0", Offset = "0x35CFBF0", VA = "0x1835D0BF0")]
|
||||
public Stack(int capacity)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Generic.Stack`1" /> class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied.</summary>
|
||||
/// <param name="collection">The collection to copy elements from.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="collection" /> is <see langword="null" />.</exception>
|
||||
// Token: 0x0600175A RID: 5978 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600175A")]
|
||||
[Address(RVA = "0x35D0D90", Offset = "0x35CFD90", VA = "0x1835D0D90")]
|
||||
public Stack(IEnumerable<T> collection)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the number of elements contained in the <see cref="T:System.Collections.Generic.Stack`1" />.</summary>
|
||||
/// <returns>The number of elements contained in the <see cref="T:System.Collections.Generic.Stack`1" />.</returns>
|
||||
// Token: 0x170004F3 RID: 1267
|
||||
// (get) Token: 0x0600175B RID: 5979 RVA: 0x0000A500 File Offset: 0x00008700
|
||||
[Token(Token = "0x170004F3")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600175B")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a value indicating whether access to the <see cref="T:System.Collections.ICollection" /> is synchronized (thread safe).</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if access to the <see cref="T:System.Collections.ICollection" /> is synchronized (thread safe); otherwise, <see langword="false" />. In the default implementation of <see cref="T:System.Collections.Generic.Stack`1" />, this property always returns <see langword="false" />.</returns>
|
||||
// Token: 0x170004F4 RID: 1268
|
||||
// (get) Token: 0x0600175C RID: 5980 RVA: 0x0000A518 File Offset: 0x00008718
|
||||
[Token(Token = "0x170004F4")]
|
||||
bool ICollection.IsSynchronized
|
||||
{
|
||||
[Token(Token = "0x600175C")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />.</summary>
|
||||
/// <returns>An object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />. In the default implementation of <see cref="T:System.Collections.Generic.Stack`1" />, this property always returns the current instance.</returns>
|
||||
// Token: 0x170004F5 RID: 1269
|
||||
// (get) Token: 0x0600175D RID: 5981 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x170004F5")]
|
||||
object ICollection.SyncRoot
|
||||
{
|
||||
[Token(Token = "0x600175D")]
|
||||
[Address(RVA = "0x35D0250", Offset = "0x35CF250", VA = "0x1835D0250", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Removes all objects from the <see cref="T:System.Collections.Generic.Stack`1" />.</summary>
|
||||
// Token: 0x0600175E RID: 5982 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600175E")]
|
||||
[Address(RVA = "0x2C47720", Offset = "0x2C46720", VA = "0x182C47720")]
|
||||
public void Clear()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Determines whether an element is in the <see cref="T:System.Collections.Generic.Stack`1" />.</summary>
|
||||
/// <param name="item">The object to locate in the <see cref="T:System.Collections.Generic.Stack`1" />. The value can be <see langword="null" /> for reference types.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if <paramref name="item" /> is found in the <see cref="T:System.Collections.Generic.Stack`1" />; otherwise, <see langword="false" />.</returns>
|
||||
// Token: 0x0600175F RID: 5983 RVA: 0x0000A530 File Offset: 0x00008730
|
||||
[Token(Token = "0x600175F")]
|
||||
[Address(RVA = "0x35CDAC0", Offset = "0x35CCAC0", VA = "0x1835CDAC0")]
|
||||
public bool Contains(T item)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Copies the elements of the <see cref="T:System.Collections.ICollection" /> to an <see cref="T:System.Array" />, starting at a particular <see cref="T:System.Array" /> index.</summary>
|
||||
/// <param name="array">The one-dimensional <see cref="T:System.Array" /> that is the destination of the elements copied from <see cref="T:System.Collections.ICollection" />. The <see cref="T:System.Array" /> must have zero-based indexing.</param>
|
||||
/// <param name="arrayIndex">The zero-based index in <paramref name="array" /> at which copying begins.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="array" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="arrayIndex" /> is less than zero.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="array" /> is multidimensional.
|
||||
/// -or-
|
||||
/// <paramref name="array" /> does not have zero-based indexing.
|
||||
/// -or-
|
||||
/// The number of elements in the source <see cref="T:System.Collections.ICollection" /> is greater than the available space from <paramref name="arrayIndex" /> to the end of the destination <paramref name="array" />.
|
||||
/// -or-
|
||||
/// The type of the source <see cref="T:System.Collections.ICollection" /> cannot be cast automatically to the type of the destination <paramref name="array" />.</exception>
|
||||
// Token: 0x06001760 RID: 5984 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001760")]
|
||||
[Address(RVA = "0x35CFC80", Offset = "0x35CEC80", VA = "0x1835CFC80", Slot = "6")]
|
||||
void ICollection.CopyTo(Array array, int arrayIndex)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Returns an enumerator for the <see cref="T:System.Collections.Generic.Stack`1" />.</summary>
|
||||
/// <returns>An <see cref="T:System.Collections.Generic.Stack`1.Enumerator" /> for the <see cref="T:System.Collections.Generic.Stack`1" />.</returns>
|
||||
// Token: 0x06001761 RID: 5985 RVA: 0x0000A548 File Offset: 0x00008748
|
||||
[Token(Token = "0x6001761")]
|
||||
[Address(RVA = "0x35CDB70", Offset = "0x35CCB70", VA = "0x1835CDB70")]
|
||||
public Stack<T>.Enumerator GetEnumerator()
|
||||
{
|
||||
return default(Stack<T>.Enumerator);
|
||||
}
|
||||
|
||||
// Token: 0x06001762 RID: 5986 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001762")]
|
||||
[Address(RVA = "0x35CE780", Offset = "0x35CD780", VA = "0x1835CE780", Slot = "4")]
|
||||
IEnumerator<T> IEnumerable<T>.GetEnumerator()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Returns an enumerator that iterates through a collection.</summary>
|
||||
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> that can be used to iterate through the collection.</returns>
|
||||
// Token: 0x06001763 RID: 5987 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001763")]
|
||||
[Address(RVA = "0x35CE780", Offset = "0x35CD780", VA = "0x1835CE780", Slot = "5")]
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Returns the object at the top of the <see cref="T:System.Collections.Generic.Stack`1" /> without removing it.</summary>
|
||||
/// <returns>The object at the top of the <see cref="T:System.Collections.Generic.Stack`1" />.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Collections.Generic.Stack`1" /> is empty.</exception>
|
||||
// Token: 0x06001764 RID: 5988 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001764")]
|
||||
[Address(RVA = "0x35CDED0", Offset = "0x35CCED0", VA = "0x1835CDED0")]
|
||||
public T Peek()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Removes and returns the object at the top of the <see cref="T:System.Collections.Generic.Stack`1" />.</summary>
|
||||
/// <returns>The object removed from the top of the <see cref="T:System.Collections.Generic.Stack`1" />.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Collections.Generic.Stack`1" /> is empty.</exception>
|
||||
// Token: 0x06001765 RID: 5989 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001765")]
|
||||
[Address(RVA = "0x35CE2A0", Offset = "0x35CD2A0", VA = "0x1835CE2A0")]
|
||||
public T Pop()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Inserts an object at the top of the <see cref="T:System.Collections.Generic.Stack`1" />.</summary>
|
||||
/// <param name="item">The object to push onto the <see cref="T:System.Collections.Generic.Stack`1" />. The value can be <see langword="null" /> for reference types.</param>
|
||||
// Token: 0x06001766 RID: 5990 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001766")]
|
||||
[Address(RVA = "0x35CE620", Offset = "0x35CD620", VA = "0x1835CE620")]
|
||||
public void Push(T item)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001767 RID: 5991 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001767")]
|
||||
[Address(RVA = "0x35D0320", Offset = "0x35CF320", VA = "0x1835D0320")]
|
||||
private void ThrowForEmptyStack()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000EB4 RID: 3764
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4000EB4")]
|
||||
private T[] _array;
|
||||
|
||||
// Token: 0x04000EB5 RID: 3765
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4000EB5")]
|
||||
private int _size;
|
||||
|
||||
// Token: 0x04000EB6 RID: 3766
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4000EB6")]
|
||||
private int _version;
|
||||
|
||||
// Token: 0x04000EB7 RID: 3767
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4000EB7")]
|
||||
[NonSerialized]
|
||||
private object _syncRoot;
|
||||
|
||||
// Token: 0x04000EB8 RID: 3768
|
||||
[Token(Token = "0x4000EB8")]
|
||||
private const int DefaultCapacity = 4;
|
||||
|
||||
/// <summary>Enumerates the elements of a <see cref="T:System.Collections.Generic.Stack`1" />.</summary>
|
||||
/// <typeparam name="T" />
|
||||
// Token: 0x0200036B RID: 875
|
||||
[Token(Token = "0x200036B")]
|
||||
[Serializable]
|
||||
public struct Enumerator : IEnumerator<T>, IDisposable, IEnumerator
|
||||
{
|
||||
// Token: 0x06001768 RID: 5992 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001768")]
|
||||
[Address(RVA = "0x35C3510", Offset = "0x35C2510", VA = "0x1835C3510")]
|
||||
internal Enumerator(Stack<T> stack)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the <see cref="T:System.Collections.Generic.Stack`1.Enumerator" />.</summary>
|
||||
// Token: 0x06001769 RID: 5993 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001769")]
|
||||
[Address(RVA = "0x35C1A90", Offset = "0x35C0A90", VA = "0x1835C1A90", Slot = "5")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Advances the enumerator to the next element of the <see cref="T:System.Collections.Generic.Stack`1" />.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="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: 0x0600176A RID: 5994 RVA: 0x0000A560 File Offset: 0x00008760
|
||||
[Token(Token = "0x600176A")]
|
||||
[Address(RVA = "0x35C2390", Offset = "0x35C1390", VA = "0x1835C2390", Slot = "6")]
|
||||
public bool MoveNext()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Gets the element at the current position of the enumerator.</summary>
|
||||
/// <returns>The element in the <see cref="T:System.Collections.Generic.Stack`1" /> at the current position of the enumerator.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
|
||||
// Token: 0x170004F6 RID: 1270
|
||||
// (get) Token: 0x0600176B RID: 5995 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x170004F6")]
|
||||
public T Current
|
||||
{
|
||||
[Token(Token = "0x600176B")]
|
||||
[Address(RVA = "0x35C37C0", Offset = "0x35C27C0", VA = "0x1835C37C0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600176C RID: 5996 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600176C")]
|
||||
[Address(RVA = "0x35C3400", Offset = "0x35C2400", VA = "0x1835C3400")]
|
||||
private void ThrowEnumerationNotStartedOrEnded()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the element at the current position of the enumerator.</summary>
|
||||
/// <returns>The element in the collection at the current position of the enumerator.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The enumerator is positioned before the first element of the collection or after the last element.</exception>
|
||||
// Token: 0x170004F7 RID: 1271
|
||||
// (get) Token: 0x0600176D RID: 5997 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x170004F7")]
|
||||
object IEnumerator.Current
|
||||
{
|
||||
[Token(Token = "0x600176D")]
|
||||
[Address(RVA = "0x35C2F30", Offset = "0x35C1F30", VA = "0x1835C2F30", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Sets the enumerator to its initial position, which is before the first element in the collection. This class cannot be inherited.</summary>
|
||||
/// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created.</exception>
|
||||
// Token: 0x0600176E RID: 5998 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600176E")]
|
||||
[Address(RVA = "0x35C29D0", Offset = "0x35C19D0", VA = "0x1835C29D0", Slot = "8")]
|
||||
void IEnumerator.Reset()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000EB9 RID: 3769
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4000EB9")]
|
||||
private readonly Stack<T> _stack;
|
||||
|
||||
// Token: 0x04000EBA RID: 3770
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4000EBA")]
|
||||
private readonly int _version;
|
||||
|
||||
// Token: 0x04000EBB RID: 3771
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4000EBB")]
|
||||
private int _index;
|
||||
|
||||
// Token: 0x04000EBC RID: 3772
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4000EBC")]
|
||||
private T _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user