Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

329 lines
15 KiB
C#

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: 0x0200036E RID: 878
[Token(Token = "0x200036E")]
[DebuggerTypeProxy(typeof(StackDebugView<>))]
[DebuggerDisplay("Count = {Count}")]
[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: 0x0600176F RID: 5999 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600176F")]
[Address(RVA = "0x28EB280", Offset = "0x28EA080", VA = "0x1828EB280")]
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: 0x06001770 RID: 6000 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001770")]
[Address(RVA = "0x3211250", Offset = "0x3210050", VA = "0x183211250")]
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: 0x06001771 RID: 6001 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001771")]
[Address(RVA = "0x32114A0", Offset = "0x32102A0", VA = "0x1832114A0")]
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: 0x170004F7 RID: 1271
// (get) Token: 0x06001772 RID: 6002 RVA: 0x0000A518 File Offset: 0x00008718
[Token(Token = "0x170004F7")]
public int Count
{
[Token(Token = "0x6001772")]
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720", 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: 0x170004F8 RID: 1272
// (get) Token: 0x06001773 RID: 6003 RVA: 0x0000A530 File Offset: 0x00008730
[Token(Token = "0x170004F8")]
bool ICollection.IsSynchronized
{
[Token(Token = "0x6001773")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", 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: 0x170004F9 RID: 1273
// (get) Token: 0x06001774 RID: 6004 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004F9")]
object ICollection.SyncRoot
{
[Token(Token = "0x6001774")]
[Address(RVA = "0x32108B0", Offset = "0x320F6B0", VA = "0x1832108B0", Slot = "8")]
get
{
return null;
}
}
/// <summary>Removes all objects from the <see cref="T:System.Collections.Generic.Stack`1" />.</summary>
// Token: 0x06001775 RID: 6005 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001775")]
[Address(RVA = "0x2549D50", Offset = "0x2548B50", VA = "0x182549D50")]
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: 0x06001776 RID: 6006 RVA: 0x0000A548 File Offset: 0x00008748
[Token(Token = "0x6001776")]
[Address(RVA = "0x320E050", Offset = "0x320CE50", VA = "0x18320E050")]
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: 0x06001777 RID: 6007 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001777")]
[Address(RVA = "0x32102E0", Offset = "0x320F0E0", VA = "0x1832102E0", 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: 0x06001778 RID: 6008 RVA: 0x0000A560 File Offset: 0x00008760
[Token(Token = "0x6001778")]
[Address(RVA = "0x320E140", Offset = "0x320CF40", VA = "0x18320E140")]
public Stack<T>.Enumerator GetEnumerator()
{
return default(Stack<T>.Enumerator);
}
// Token: 0x06001779 RID: 6009 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001779")]
[Address(RVA = "0x320EEA0", Offset = "0x320DCA0", VA = "0x18320EEA0", 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: 0x0600177A RID: 6010 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600177A")]
[Address(RVA = "0x320EEA0", Offset = "0x320DCA0", VA = "0x18320EEA0", 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: 0x0600177B RID: 6011 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600177B")]
[Address(RVA = "0x320E4E0", Offset = "0x320D2E0", VA = "0x18320E4E0")]
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: 0x0600177C RID: 6012 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600177C")]
[Address(RVA = "0x320E8B0", Offset = "0x320D6B0", VA = "0x18320E8B0")]
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: 0x0600177D RID: 6013 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600177D")]
[Address(RVA = "0x320EC30", Offset = "0x320DA30", VA = "0x18320EC30")]
public void Push(T item)
{
}
// Token: 0x0600177E RID: 6014 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600177E")]
[Address(RVA = "0x3210980", Offset = "0x320F780", VA = "0x183210980")]
private void ThrowForEmptyStack()
{
}
// Token: 0x04000EC1 RID: 3777
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000EC1")]
private T[] _array;
// Token: 0x04000EC2 RID: 3778
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000EC2")]
private int _size;
// Token: 0x04000EC3 RID: 3779
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000EC3")]
private int _version;
// Token: 0x04000EC4 RID: 3780
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000EC4")]
[NonSerialized]
private object _syncRoot;
// Token: 0x04000EC5 RID: 3781
[Token(Token = "0x4000EC5")]
private const int DefaultCapacity = 4;
/// <summary>Enumerates the elements of a <see cref="T:System.Collections.Generic.Stack`1" />.</summary>
/// <typeparam name="T" />
// Token: 0x0200036F RID: 879
[Token(Token = "0x200036F")]
[Serializable]
public struct Enumerator : IEnumerator<T>, IDisposable, IEnumerator
{
// Token: 0x0600177F RID: 6015 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600177F")]
[Address(RVA = "0x3202FE0", Offset = "0x3201DE0", VA = "0x183202FE0")]
internal Enumerator(Stack<T> stack)
{
}
/// <summary>Releases all resources used by the <see cref="T:System.Collections.Generic.Stack`1.Enumerator" />.</summary>
// Token: 0x06001780 RID: 6016 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001780")]
[Address(RVA = "0x3202CD0", Offset = "0x3201AD0", VA = "0x183202CD0", 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: 0x06001781 RID: 6017 RVA: 0x0000A578 File Offset: 0x00008778
[Token(Token = "0x6001781")]
[Address(RVA = "0x333CEF0", Offset = "0x333BCF0", VA = "0x18333CEF0", 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: 0x170004FA RID: 1274
// (get) Token: 0x06001782 RID: 6018 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004FA")]
public T Current
{
[Token(Token = "0x6001782")]
[Address(RVA = "0x333FC70", Offset = "0x333EA70", VA = "0x18333FC70", Slot = "4")]
get
{
return null;
}
}
// Token: 0x06001783 RID: 6019 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001783")]
[Address(RVA = "0x333F140", Offset = "0x333DF40", VA = "0x18333F140")]
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: 0x170004FB RID: 1275
// (get) Token: 0x06001784 RID: 6020 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004FB")]
object IEnumerator.Current
{
[Token(Token = "0x6001784")]
[Address(RVA = "0x333E7F0", Offset = "0x333D5F0", VA = "0x18333E7F0", 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: 0x06001785 RID: 6021 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001785")]
[Address(RVA = "0x333E330", Offset = "0x333D130", VA = "0x18333E330", Slot = "8")]
void IEnumerator.Reset()
{
}
// Token: 0x04000EC6 RID: 3782
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000EC6")]
private readonly Stack<T> _stack;
// Token: 0x04000EC7 RID: 3783
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000EC7")]
private readonly int _version;
// Token: 0x04000EC8 RID: 3784
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000EC8")]
private int _index;
// Token: 0x04000EC9 RID: 3785
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000EC9")]
private T _currentElement;
}
}
}