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

395 lines
19 KiB
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Collections.ObjectModel
{
/// <summary>Provides the base class for a generic read-only collection.</summary>
/// <typeparam name="T">The type of elements in the collection.</typeparam>
// Token: 0x020005F3 RID: 1523
[Token(Token = "0x20005F3")]
[DebuggerDisplay("Count = {Count}")]
[DebuggerTypeProxy(typeof(Mscorlib_CollectionDebugView<>))]
[ComVisible(false)]
[Serializable]
public class ReadOnlyCollection<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>
{
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" /> class that is a read-only wrapper around the specified list.</summary>
/// <param name="list">The list to wrap.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="list" /> is <see langword="null" />.</exception>
// Token: 0x06002F8A RID: 12170 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002F8A")]
[Address(RVA = "0x341AF60", Offset = "0x3419F60", VA = "0x18341AF60")]
public ReadOnlyCollection(IList<T> list)
{
}
/// <summary>Gets the number of elements contained in the <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" /> instance.</summary>
/// <returns>The number of elements contained in the <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" /> instance.</returns>
// Token: 0x17000776 RID: 1910
// (get) Token: 0x06002F8B RID: 12171 RVA: 0x0001A028 File Offset: 0x00018228
[Token(Token = "0x17000776")]
public int Count
{
[Token(Token = "0x6002F8B")]
[Address(RVA = "0x341AFA0", Offset = "0x3419FA0", VA = "0x18341AFA0", Slot = "34")]
get
{
return 0;
}
}
/// <summary>Gets the element at the specified index.</summary>
/// <param name="index">The zero-based index of the element to get.</param>
/// <returns>The element at the specified index.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero.
/// -or-
/// <paramref name="index" /> is equal to or greater than <see cref="P:System.Collections.ObjectModel.ReadOnlyCollection`1.Count" />.</exception>
// Token: 0x17000777 RID: 1911
[Token(Token = "0x17000777")]
public T this[int index]
{
[Token(Token = "0x6002F8C")]
[Address(RVA = "0x35C5190", Offset = "0x35C4190", VA = "0x1835C5190", Slot = "33")]
get
{
return null;
}
}
/// <summary>Determines whether an element is in the <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" />.</summary>
/// <param name="value">The object to locate in the <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" />. The value can be <see langword="null" /> for reference types.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="value" /> is found in the <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" />; otherwise, <see langword="false" />.</returns>
// Token: 0x06002F8D RID: 12173 RVA: 0x0001A040 File Offset: 0x00018240
[Token(Token = "0x6002F8D")]
[Address(RVA = "0x34168E0", Offset = "0x34158E0", VA = "0x1834168E0", Slot = "13")]
public bool Contains(T value)
{
return default(bool);
}
/// <summary>Copies the entire <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" /> to a compatible one-dimensional <see cref="T:System.Array" />, starting at the specified index of the target array.</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.ObjectModel.ReadOnlyCollection`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 <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero.</exception>
/// <exception cref="T:System.ArgumentException">The number of elements in the source <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" /> is greater than the available space from <paramref name="index" /> to the end of the destination <paramref name="array" />.</exception>
// Token: 0x06002F8E RID: 12174 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002F8E")]
[Address(RVA = "0x3416D70", Offset = "0x3415D70", VA = "0x183416D70", Slot = "14")]
public void CopyTo(T[] array, int index)
{
}
/// <summary>Returns an enumerator that iterates through the <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" />.</summary>
/// <returns>An <see cref="T:System.Collections.Generic.IEnumerator`1" /> for the <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" />.</returns>
// Token: 0x06002F8F RID: 12175 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002F8F")]
[Address(RVA = "0x26FF5C0", Offset = "0x26FE5C0", VA = "0x1826FF5C0", Slot = "16")]
public IEnumerator<T> GetEnumerator()
{
return null;
}
/// <summary>Searches for the specified object and returns the zero-based index of the first occurrence within the entire <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" />.</summary>
/// <param name="value">The object to locate in the <see cref="T:System.Collections.Generic.List`1" />. The value can be <see langword="null" /> for reference types.</param>
/// <returns>The zero-based index of the first occurrence of <paramref name="item" /> within the entire <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" />, if found; otherwise, -1.</returns>
// Token: 0x06002F90 RID: 12176 RVA: 0x0001A058 File Offset: 0x00018258
[Token(Token = "0x6002F90")]
[Address(RVA = "0x3416DF0", Offset = "0x3415DF0", VA = "0x183416DF0", Slot = "6")]
public int IndexOf(T value)
{
return 0;
}
// Token: 0x17000778 RID: 1912
// (get) Token: 0x06002F91 RID: 12177 RVA: 0x0001A070 File Offset: 0x00018270
[Token(Token = "0x17000778")]
bool ICollection<T>.IsReadOnly
{
[Token(Token = "0x6002F91")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "10")]
get
{
return default(bool);
}
}
// Token: 0x17000779 RID: 1913
[Token(Token = "0x17000779")]
T IList<T>.this[int index]
{
[Token(Token = "0x6002F92")]
[Address(RVA = "0x3417B10", Offset = "0x3416B10", VA = "0x183417B10", Slot = "4")]
get
{
return null;
}
[Token(Token = "0x6002F93")]
[Address(RVA = "0x34177C0", Offset = "0x34167C0", VA = "0x1834177C0", Slot = "5")]
set
{
}
}
// Token: 0x06002F94 RID: 12180 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002F94")]
[Address(RVA = "0x34177C0", Offset = "0x34167C0", VA = "0x1834177C0", Slot = "11")]
void ICollection<T>.Add(T value)
{
}
// Token: 0x06002F95 RID: 12181 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002F95")]
[Address(RVA = "0x34177C0", Offset = "0x34167C0", VA = "0x1834177C0", Slot = "12")]
void ICollection<T>.Clear()
{
}
// Token: 0x06002F96 RID: 12182 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002F96")]
[Address(RVA = "0x34177C0", Offset = "0x34167C0", VA = "0x1834177C0", Slot = "7")]
void IList<T>.Insert(int index, T value)
{
}
// Token: 0x06002F97 RID: 12183 RVA: 0x0001A088 File Offset: 0x00018288
[Token(Token = "0x6002F97")]
[Address(RVA = "0x34177D0", Offset = "0x34167D0", VA = "0x1834177D0", Slot = "15")]
bool ICollection<T>.Remove(T value)
{
return default(bool);
}
// Token: 0x06002F98 RID: 12184 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002F98")]
[Address(RVA = "0x34177C0", Offset = "0x34167C0", VA = "0x1834177C0", Slot = "8")]
void IList<T>.RemoveAt(int index)
{
}
/// <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: 0x06002F99 RID: 12185 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002F99")]
[Address(RVA = "0x35C89F0", Offset = "0x35C79F0", VA = "0x1835C89F0", Slot = "17")]
IEnumerator IEnumerable.GetEnumerator()
{
return null;
}
/// <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.ObjectModel.ReadOnlyCollection`1" />, this property always returns <see langword="false" />.</returns>
// Token: 0x1700077A RID: 1914
// (get) Token: 0x06002F9A RID: 12186 RVA: 0x0001A0A0 File Offset: 0x000182A0
[Token(Token = "0x1700077A")]
bool ICollection.IsSynchronized
{
[Token(Token = "0x6002F9A")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "32")]
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.ObjectModel.ReadOnlyCollection`1" />, this property always returns the current instance.</returns>
// Token: 0x1700077B RID: 1915
// (get) Token: 0x06002F9B RID: 12187 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700077B")]
object ICollection.SyncRoot
{
[Token(Token = "0x6002F9B")]
[Address(RVA = "0x35C8220", Offset = "0x35C7220", VA = "0x1835C8220", Slot = "31")]
get
{
return null;
}
}
/// <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="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-
/// <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="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: 0x06002F9C RID: 12188 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002F9C")]
[Address(RVA = "0x35C70A0", Offset = "0x35C60A0", VA = "0x1835C70A0", Slot = "29")]
void ICollection.CopyTo(Array array, int index)
{
}
/// <summary>Gets a value indicating whether the <see cref="T:System.Collections.IList" /> has a fixed size.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Collections.IList" /> has a fixed size; otherwise, <see langword="false" />. In the default implementation of <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" />, this property always returns <see langword="true" />.</returns>
// Token: 0x1700077C RID: 1916
// (get) Token: 0x06002F9D RID: 12189 RVA: 0x0001A0B8 File Offset: 0x000182B8
[Token(Token = "0x1700077C")]
bool IList.IsFixedSize
{
[Token(Token = "0x6002F9D")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "24")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the <see cref="T:System.Collections.IList" /> is read-only.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Collections.IList" /> is read-only; otherwise, <see langword="false" />. In the default implementation of <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" />, this property always returns <see langword="true" />.</returns>
// Token: 0x1700077D RID: 1917
// (get) Token: 0x06002F9E RID: 12190 RVA: 0x0001A0D0 File Offset: 0x000182D0
[Token(Token = "0x1700077D")]
bool IList.IsReadOnly
{
[Token(Token = "0x6002F9E")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "23")]
get
{
return default(bool);
}
}
/// <summary>Gets the element at the specified index. A <see cref="T:System.NotSupportedException" /> occurs if you try to set the item at the specified index.</summary>
/// <param name="index">The zero-based index of the element to get.</param>
/// <returns>The element at the specified index.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is not a valid index in the <see cref="T:System.Collections.IList" />.</exception>
/// <exception cref="T:System.NotSupportedException">Always thrown if the property is set.</exception>
// Token: 0x1700077E RID: 1918
[Token(Token = "0x1700077E")]
object IList.this[int index]
{
[Token(Token = "0x6002F9F")]
[Address(RVA = "0x341AE60", Offset = "0x3419E60", VA = "0x18341AE60", Slot = "18")]
get
{
return null;
}
[Token(Token = "0x6002FA0")]
[Address(RVA = "0x34177C0", Offset = "0x34167C0", VA = "0x1834177C0", Slot = "19")]
set
{
}
}
/// <summary>Adds an item to the <see cref="T:System.Collections.IList" />. This implementation always throws <see cref="T:System.NotSupportedException" />.</summary>
/// <param name="value">The <see cref="T:System.Object" /> to add to the <see cref="T:System.Collections.IList" />.</param>
/// <returns>The position into which the new element was inserted.</returns>
/// <exception cref="T:System.NotSupportedException">Always thrown.</exception>
// Token: 0x06002FA1 RID: 12193 RVA: 0x0001A0E8 File Offset: 0x000182E8
[Token(Token = "0x6002FA1")]
[Address(RVA = "0x341A100", Offset = "0x3419100", VA = "0x18341A100", Slot = "20")]
int IList.Add(object value)
{
return 0;
}
/// <summary>Removes all items from the <see cref="T:System.Collections.IList" />. This implementation always throws <see cref="T:System.NotSupportedException" />.</summary>
/// <exception cref="T:System.NotSupportedException">Always thrown.</exception>
// Token: 0x06002FA2 RID: 12194 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002FA2")]
[Address(RVA = "0x34177C0", Offset = "0x34167C0", VA = "0x1834177C0", Slot = "22")]
void IList.Clear()
{
}
// Token: 0x06002FA3 RID: 12195 RVA: 0x0001A100 File Offset: 0x00018300
[Token(Token = "0x6002FA3")]
[Address(RVA = "0x3417380", Offset = "0x3416380", VA = "0x183417380")]
private static bool IsCompatibleObject(object value)
{
return default(bool);
}
/// <summary>Determines whether the <see cref="T:System.Collections.IList" /> contains a specific value.</summary>
/// <param name="value">The <see cref="T:System.Object" /> to locate in the <see cref="T:System.Collections.IList" />.</param>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Object" /> is found in the <see cref="T:System.Collections.IList" />; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="value" /> is not of the type specified for the generic type parameter <paramref name="T" />.</exception>
// Token: 0x06002FA4 RID: 12196 RVA: 0x0001A118 File Offset: 0x00018318
[Token(Token = "0x6002FA4")]
[Address(RVA = "0x341A410", Offset = "0x3419410", VA = "0x18341A410", Slot = "21")]
bool IList.Contains(object value)
{
return default(bool);
}
/// <summary>Determines the index of a specific item in the <see cref="T:System.Collections.IList" />.</summary>
/// <param name="value">The <see cref="T:System.Object" /> to locate in the <see cref="T:System.Collections.IList" />.</param>
/// <returns>The index of <paramref name="value" /> if found in the list; otherwise, -1.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="value" /> is not of the type specified for the generic type parameter <paramref name="T" />.</exception>
// Token: 0x06002FA5 RID: 12197 RVA: 0x0001A130 File Offset: 0x00018330
[Token(Token = "0x6002FA5")]
[Address(RVA = "0x341A990", Offset = "0x3419990", VA = "0x18341A990", Slot = "25")]
int IList.IndexOf(object value)
{
return 0;
}
/// <summary>Inserts an item to the <see cref="T:System.Collections.IList" /> at the specified index. This implementation always throws <see cref="T:System.NotSupportedException" />.</summary>
/// <param name="index">The zero-based index at which <paramref name="value" /> should be inserted.</param>
/// <param name="value">The <see cref="T:System.Object" /> to insert into the <see cref="T:System.Collections.IList" />.</param>
/// <exception cref="T:System.NotSupportedException">Always thrown.</exception>
// Token: 0x06002FA6 RID: 12198 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002FA6")]
[Address(RVA = "0x34177C0", Offset = "0x34167C0", VA = "0x1834177C0", Slot = "26")]
void IList.Insert(int index, object value)
{
}
/// <summary>Removes the first occurrence of a specific object from the <see cref="T:System.Collections.IList" />. This implementation always throws <see cref="T:System.NotSupportedException" />.</summary>
/// <param name="value">The <see cref="T:System.Object" /> to remove from the <see cref="T:System.Collections.IList" />.</param>
/// <exception cref="T:System.NotSupportedException">Always thrown.</exception>
// Token: 0x06002FA7 RID: 12199 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002FA7")]
[Address(RVA = "0x34177C0", Offset = "0x34167C0", VA = "0x1834177C0", Slot = "27")]
void IList.Remove(object value)
{
}
/// <summary>Removes the <see cref="T:System.Collections.IList" /> item at the specified index. This implementation always throws <see cref="T:System.NotSupportedException" />.</summary>
/// <param name="index">The zero-based index of the item to remove.</param>
/// <exception cref="T:System.NotSupportedException">Always thrown.</exception>
// Token: 0x06002FA8 RID: 12200 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002FA8")]
[Address(RVA = "0x34177C0", Offset = "0x34167C0", VA = "0x1834177C0", Slot = "28")]
void IList.RemoveAt(int index)
{
}
// Token: 0x04001AA8 RID: 6824
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001AA8")]
private IList<T> list;
// Token: 0x04001AA9 RID: 6825
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001AA9")]
[NonSerialized]
private object _syncRoot;
}
}