Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Collections/Concurrent/ConcurrentStack.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

211 lines
9.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using Cpp2IlInjected;
namespace System.Collections.Concurrent
{
/// <summary>Represents a thread-safe last in-first out (LIFO) collection.</summary>
/// <typeparam name="T">The type of the elements contained in the stack.</typeparam>
// Token: 0x02000601 RID: 1537
[Token(Token = "0x2000601")]
[DebuggerDisplay("Count = {Count}")]
[DebuggerTypeProxy(typeof(IProducerConsumerCollectionDebugView<>))]
[Serializable]
public class ConcurrentStack<T> : IEnumerable<T>, IEnumerable, ICollection, IReadOnlyCollection<T>
{
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> class.</summary>
// Token: 0x06003016 RID: 12310 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6003016")]
[Address(RVA = "0x1CC5E40", Offset = "0x1CC4E40", VA = "0x181CC5E40")]
public ConcurrentStack()
{
}
/// <summary>Gets the number of elements contained in the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</summary>
/// <returns>The number of elements contained in the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</returns>
// Token: 0x1700079C RID: 1948
// (get) Token: 0x06003017 RID: 12311 RVA: 0x0001A4A8 File Offset: 0x000186A8
[Token(Token = "0x1700079C")]
public int Count
{
[Token(Token = "0x6003017")]
[Address(RVA = "0x3611860", Offset = "0x3610860", VA = "0x183611860", Slot = "10")]
get
{
return 0;
}
}
/// <summary>Gets a value indicating whether access to the <see cref="T:System.Collections.ICollection" /> is synchronized with the SyncRoot.</summary>
/// <returns>Always returns <see langword="false" /> to indicate access is not synchronized.</returns>
// Token: 0x1700079D RID: 1949
// (get) Token: 0x06003018 RID: 12312 RVA: 0x0001A4C0 File Offset: 0x000186C0
[Token(Token = "0x1700079D")]
bool ICollection.IsSynchronized
{
[Token(Token = "0x6003018")]
[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" />. This property is not supported.</summary>
/// <returns>Returns null (Nothing in Visual Basic).</returns>
/// <exception cref="T:System.NotSupportedException">The SyncRoot property is not supported</exception>
// Token: 0x1700079E RID: 1950
// (get) Token: 0x06003019 RID: 12313 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700079E")]
object ICollection.SyncRoot
{
[Token(Token = "0x6003019")]
[Address(RVA = "0x3611320", Offset = "0x3610320", VA = "0x183611320", Slot = "8")]
get
{
return null;
}
}
/// <summary>Removes all objects from the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</summary>
// Token: 0x0600301A RID: 12314 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600301A")]
[Address(RVA = "0x3610F10", Offset = "0x360FF10", VA = "0x183610F10")]
public void Clear()
{
}
/// <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 the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />. 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 a null reference (Nothing in Visual Basic).</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- <paramref name="array" /> does not have zero-based indexing. -or- <paramref name="index" /> is equal to or greater than the length of the <paramref name="array" /> -or- The number of elements in the source <see cref="T:System.Collections.ICollection" /> is greater than the available space from <paramref name="index" /> 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: 0x0600301B RID: 12315 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600301B")]
[Address(RVA = "0x36111F0", Offset = "0x36101F0", VA = "0x1836111F0", Slot = "6")]
void ICollection.CopyTo(Array array, int index)
{
}
/// <summary>Inserts an object at the top of the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</summary>
/// <param name="item">The object to push onto the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />. The value can be a null reference (Nothing in Visual Basic) for reference types.</param>
// Token: 0x0600301C RID: 12316 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600301C")]
[Address(RVA = "0x3611110", Offset = "0x3610110", VA = "0x183611110")]
public void Push(T item)
{
}
// Token: 0x0600301D RID: 12317 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600301D")]
[Address(RVA = "0x3611000", Offset = "0x3610000", VA = "0x183611000")]
private void PushCore(ConcurrentStack<T>.Node head, ConcurrentStack<T>.Node tail)
{
}
/// <summary>Attempts to pop and return the object at the top of the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</summary>
/// <param name="result">When this method returns, if the operation was successful, <paramref name="result" /> contains the object removed. If no object was available to be removed, the value is unspecified.</param>
/// <returns>true if an element was removed and returned from the top of the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> successfully; otherwise, false.</returns>
// Token: 0x0600301E RID: 12318 RVA: 0x0001A4D8 File Offset: 0x000186D8
[Token(Token = "0x600301E")]
[Address(RVA = "0x36117C0", Offset = "0x36107C0", VA = "0x1836117C0")]
public bool TryPop(out T result)
{
return default(bool);
}
// Token: 0x0600301F RID: 12319 RVA: 0x0001A4F0 File Offset: 0x000186F0
[Token(Token = "0x600301F")]
[Address(RVA = "0x36114D0", Offset = "0x36104D0", VA = "0x1836114D0")]
private bool TryPopCore(out T result)
{
return default(bool);
}
// Token: 0x06003020 RID: 12320 RVA: 0x0001A508 File Offset: 0x00018708
[Token(Token = "0x6003020")]
[Address(RVA = "0x3611540", Offset = "0x3610540", VA = "0x183611540")]
private int TryPopCore(int count, out ConcurrentStack<T>.Node poppedHead)
{
return 0;
}
// Token: 0x06003021 RID: 12321 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6003021")]
[Address(RVA = "0x36113D0", Offset = "0x36103D0", VA = "0x1836113D0")]
private List<T> ToList()
{
return null;
}
// Token: 0x06003022 RID: 12322 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6003022")]
[Address(RVA = "0x3611420", Offset = "0x3610420", VA = "0x183611420")]
private List<T> ToList(ConcurrentStack<T>.Node curr)
{
return null;
}
/// <summary>Returns an enumerator that iterates through the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</summary>
/// <returns>An enumerator for the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</returns>
// Token: 0x06003023 RID: 12323 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6003023")]
[Address(RVA = "0x3610FB0", Offset = "0x360FFB0", VA = "0x183610FB0", Slot = "4")]
public IEnumerator<T> GetEnumerator()
{
return null;
}
// Token: 0x06003024 RID: 12324 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6003024")]
[Address(RVA = "0x3610F30", Offset = "0x360FF30", VA = "0x183610F30")]
private IEnumerator<T> GetEnumerator(ConcurrentStack<T>.Node head)
{
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: 0x06003025 RID: 12325 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6003025")]
[Address(RVA = "0x3611380", Offset = "0x3610380", VA = "0x183611380", Slot = "5")]
IEnumerator IEnumerable.GetEnumerator()
{
return null;
}
// Token: 0x04001ADC RID: 6876
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001ADC")]
private ConcurrentStack<T>.Node _head;
// Token: 0x02000602 RID: 1538
[Token(Token = "0x2000602")]
[Serializable]
private class Node
{
// Token: 0x06003026 RID: 12326 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6003026")]
[Address(RVA = "0x36118B0", Offset = "0x36108B0", VA = "0x1836118B0")]
internal Node(T value)
{
}
// Token: 0x04001ADD RID: 6877
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001ADD")]
internal readonly T _value;
// Token: 0x04001ADE RID: 6878
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001ADE")]
internal ConcurrentStack<T>.Node _next;
}
}
}