Files
2026-04-10 22:50:51 +02:00

257 lines
11 KiB
C#

using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Collections
{
/// <summary>Represents a simple last-in-first-out (LIFO) non-generic collection of objects.</summary>
// Token: 0x020005CF RID: 1487
[Token(Token = "0x20005CF")]
[DebuggerDisplay("Count = {Count}")]
[ComVisible(true)]
[DebuggerTypeProxy(typeof(Stack.StackDebugView))]
[Serializable]
public class Stack : ICollection, IEnumerable, ICloneable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Stack" /> class that is empty and has the default initial capacity.</summary>
// Token: 0x06002D31 RID: 11569 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002D31")]
[Address(RVA = "0x254A440", Offset = "0x2549240", VA = "0x18254A440")]
public Stack()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Stack" /> class that is empty and has the specified initial capacity or the default initial capacity, whichever is greater.</summary>
/// <param name="initialCapacity">The initial number of elements that the <see cref="T:System.Collections.Stack" /> can contain.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="initialCapacity" /> is less than zero.</exception>
// Token: 0x06002D32 RID: 11570 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002D32")]
[Address(RVA = "0x254A490", Offset = "0x2549290", VA = "0x18254A490")]
public Stack(int initialCapacity)
{
}
/// <summary>Gets the number of elements contained in the <see cref="T:System.Collections.Stack" />.</summary>
/// <returns>The number of elements contained in the <see cref="T:System.Collections.Stack" />.</returns>
// Token: 0x170006EF RID: 1775
// (get) Token: 0x06002D33 RID: 11571 RVA: 0x00017A78 File Offset: 0x00015C78
[Token(Token = "0x170006EF")]
public virtual int Count
{
[Token(Token = "0x6002D33")]
[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.Stack" /> is synchronized (thread safe).</summary>
/// <returns>
/// <see langword="true" />, if access to the <see cref="T:System.Collections.Stack" /> is synchronized (thread safe); otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
// Token: 0x170006F0 RID: 1776
// (get) Token: 0x06002D34 RID: 11572 RVA: 0x00017A90 File Offset: 0x00015C90
[Token(Token = "0x170006F0")]
public virtual bool IsSynchronized
{
[Token(Token = "0x6002D34")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "11")]
get
{
return default(bool);
}
}
/// <summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.Stack" />.</summary>
/// <returns>An <see cref="T:System.Object" /> that can be used to synchronize access to the <see cref="T:System.Collections.Stack" />.</returns>
// Token: 0x170006F1 RID: 1777
// (get) Token: 0x06002D35 RID: 11573 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170006F1")]
public virtual object SyncRoot
{
[Token(Token = "0x6002D35")]
[Address(RVA = "0x254A540", Offset = "0x2549340", VA = "0x18254A540", Slot = "12")]
get
{
return null;
}
}
/// <summary>Removes all objects from the <see cref="T:System.Collections.Stack" />.</summary>
// Token: 0x06002D36 RID: 11574 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002D36")]
[Address(RVA = "0x2549D50", Offset = "0x2548B50", VA = "0x182549D50", Slot = "13")]
public virtual void Clear()
{
}
/// <summary>Creates a shallow copy of the <see cref="T:System.Collections.Stack" />.</summary>
/// <returns>A shallow copy of the <see cref="T:System.Collections.Stack" />.</returns>
// Token: 0x06002D37 RID: 11575 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002D37")]
[Address(RVA = "0x2549D80", Offset = "0x2548B80", VA = "0x182549D80", Slot = "14")]
public virtual object Clone()
{
return null;
}
/// <summary>Copies the <see cref="T:System.Collections.Stack" /> to an existing one-dimensional <see cref="T:System.Array" />, starting at the specified 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.Stack" />. The <see cref="T:System.Array" /> must have zero-based indexing.</param>
/// <param name="index">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="index" /> is less than zero.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="array" /> is multidimensional.
/// -or-
/// The number of elements in the source <see cref="T:System.Collections.Stack" /> is greater than the available space from <paramref name="index" /> to the end of the destination <paramref name="array" />.</exception>
/// <exception cref="T:System.InvalidCastException">The type of the source <see cref="T:System.Collections.Stack" /> cannot be cast automatically to the type of the destination <paramref name="array" />.</exception>
// Token: 0x06002D38 RID: 11576 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002D38")]
[Address(RVA = "0x2549E90", Offset = "0x2548C90", VA = "0x182549E90", Slot = "15")]
public virtual void CopyTo(Array array, int index)
{
}
/// <summary>Returns an <see cref="T:System.Collections.IEnumerator" /> for the <see cref="T:System.Collections.Stack" />.</summary>
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> for the <see cref="T:System.Collections.Stack" />.</returns>
// Token: 0x06002D39 RID: 11577 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002D39")]
[Address(RVA = "0x254A130", Offset = "0x2548F30", VA = "0x18254A130", Slot = "16")]
public virtual IEnumerator GetEnumerator()
{
return null;
}
/// <summary>Returns the object at the top of the <see cref="T:System.Collections.Stack" /> without removing it.</summary>
/// <returns>The <see cref="T:System.Object" /> at the top of the <see cref="T:System.Collections.Stack" />.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Collections.Stack" /> is empty.</exception>
// Token: 0x06002D3A RID: 11578 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002D3A")]
[Address(RVA = "0x254A1B0", Offset = "0x2548FB0", VA = "0x18254A1B0", Slot = "17")]
public virtual object Peek()
{
return null;
}
/// <summary>Removes and returns the object at the top of the <see cref="T:System.Collections.Stack" />.</summary>
/// <returns>The <see cref="T:System.Object" /> removed from the top of the <see cref="T:System.Collections.Stack" />.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Collections.Stack" /> is empty.</exception>
// Token: 0x06002D3B RID: 11579 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002D3B")]
[Address(RVA = "0x254A260", Offset = "0x2549060", VA = "0x18254A260", Slot = "18")]
public virtual object Pop()
{
return null;
}
/// <summary>Inserts an object at the top of the <see cref="T:System.Collections.Stack" />.</summary>
/// <param name="obj">The <see cref="T:System.Object" /> to push onto the <see cref="T:System.Collections.Stack" />. The value can be <see langword="null" />.</param>
// Token: 0x06002D3C RID: 11580 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002D3C")]
[Address(RVA = "0x254A340", Offset = "0x2549140", VA = "0x18254A340", Slot = "19")]
public virtual void Push(object obj)
{
}
// Token: 0x040019D7 RID: 6615
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40019D7")]
private object[] _array;
// Token: 0x040019D8 RID: 6616
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40019D8")]
private int _size;
// Token: 0x040019D9 RID: 6617
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40019D9")]
private int _version;
// Token: 0x040019DA RID: 6618
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40019DA")]
[NonSerialized]
private object _syncRoot;
// Token: 0x020005D0 RID: 1488
[Token(Token = "0x20005D0")]
[Serializable]
private class StackEnumerator : IEnumerator, ICloneable
{
// Token: 0x06002D3D RID: 11581 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002D3D")]
[Address(RVA = "0x2549C30", Offset = "0x2548A30", VA = "0x182549C30")]
internal StackEnumerator(Stack stack)
{
}
// Token: 0x06002D3E RID: 11582 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002D3E")]
[Address(RVA = "0x6A0DF0", Offset = "0x69FBF0", VA = "0x1806A0DF0", Slot = "7")]
public object Clone()
{
return null;
}
// Token: 0x06002D3F RID: 11583 RVA: 0x00017AA8 File Offset: 0x00015CA8
[Token(Token = "0x6002D3F")]
[Address(RVA = "0x2549A50", Offset = "0x2548850", VA = "0x182549A50", Slot = "8")]
public virtual bool MoveNext()
{
return default(bool);
}
// Token: 0x170006F2 RID: 1778
// (get) Token: 0x06002D40 RID: 11584 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170006F2")]
public virtual object Current
{
[Token(Token = "0x6002D40")]
[Address(RVA = "0x2549C80", Offset = "0x2548A80", VA = "0x182549C80", Slot = "9")]
get
{
return null;
}
}
// Token: 0x06002D41 RID: 11585 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002D41")]
[Address(RVA = "0x2549B90", Offset = "0x2548990", VA = "0x182549B90", Slot = "10")]
public virtual void Reset()
{
}
// Token: 0x040019DB RID: 6619
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40019DB")]
private Stack _stack;
// Token: 0x040019DC RID: 6620
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40019DC")]
private int _index;
// Token: 0x040019DD RID: 6621
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40019DD")]
private int _version;
// Token: 0x040019DE RID: 6622
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40019DE")]
private object currentElement;
}
// Token: 0x020005D1 RID: 1489
[Token(Token = "0x20005D1")]
internal class StackDebugView
{
}
}
}