Files
Apr2020-Cpp2Il-Dump/System/Collections/Specialized/NameObjectCollectionBase.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

397 lines
20 KiB
C#

using System;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Collections.Specialized
{
/// <summary>Provides the <see langword="abstract" /> base class for a collection of associated <see cref="T:System.String" /> keys and <see cref="T:System.Object" /> values that can be accessed either with the key or with the index.</summary>
// Token: 0x02000339 RID: 825
[Token(Token = "0x2000339")]
[Serializable]
public abstract class NameObjectCollectionBase : ICollection, IEnumerable, ISerializable, IDeserializationCallback
{
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> class that is empty.</summary>
// Token: 0x0600156D RID: 5485 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600156D")]
[Address(RVA = "0x4A4440", Offset = "0x4A3240", VA = "0x1804A4440")]
protected NameObjectCollectionBase()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> class that is empty, has the default initial capacity, and uses the specified <see cref="T:System.Collections.IEqualityComparer" /> object.</summary>
/// <param name="equalityComparer">The <see cref="T:System.Collections.IEqualityComparer" /> object to use to determine whether two keys are equal and to generate hash codes for the keys in the collection.</param>
// Token: 0x0600156E RID: 5486 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600156E")]
[Address(RVA = "0x4A4330", Offset = "0x4A3130", VA = "0x1804A4330")]
protected NameObjectCollectionBase(IEqualityComparer equalityComparer)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> class that is empty, has the specified initial capacity, and uses the specified <see cref="T:System.Collections.IEqualityComparer" /> object.</summary>
/// <param name="capacity">The approximate number of entries that the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> object can initially contain.</param>
/// <param name="equalityComparer">The <see cref="T:System.Collections.IEqualityComparer" /> object to use to determine whether two keys are equal and to generate hash codes for the keys in the collection.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="capacity" /> is less than zero.</exception>
// Token: 0x0600156F RID: 5487 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600156F")]
[Address(RVA = "0x4A42F0", Offset = "0x4A30F0", VA = "0x1804A42F0")]
protected NameObjectCollectionBase(int capacity, IEqualityComparer equalityComparer)
{
}
// Token: 0x06001570 RID: 5488 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001570")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
internal NameObjectCollectionBase(DBNull dummy)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> class that is serializable and uses the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" />.</summary>
/// <param name="info">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object that contains the information required to serialize the new <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</param>
/// <param name="context">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> object that contains the source and destination of the serialized stream associated with the new <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</param>
// Token: 0x06001571 RID: 5489 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001571")]
[Address(RVA = "0x4A42C0", Offset = "0x4A30C0", VA = "0x1804A42C0")]
protected NameObjectCollectionBase(SerializationInfo info, StreamingContext context)
{
}
/// <summary>Implements the <see cref="T:System.Runtime.Serialization.ISerializable" /> interface and returns the data needed to serialize the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</summary>
/// <param name="info">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object that contains the information required to serialize the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</param>
/// <param name="context">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> object that contains the source and destination of the serialized stream associated with the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="info" /> is <see langword="null" />.</exception>
// Token: 0x06001572 RID: 5490 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001572")]
[Address(RVA = "0x4A3170", Offset = "0x4A1F70", VA = "0x1804A3170", Slot = "11")]
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
{
}
/// <summary>Implements the <see cref="T:System.Runtime.Serialization.ISerializable" /> interface and raises the deserialization event when the deserialization is complete.</summary>
/// <param name="sender">The source of the deserialization event.</param>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object associated with the current <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance is invalid.</exception>
// Token: 0x06001573 RID: 5491 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001573")]
[Address(RVA = "0x4A37B0", Offset = "0x4A25B0", VA = "0x1804A37B0", Slot = "12")]
public virtual void OnDeserialization(object sender)
{
}
// Token: 0x06001574 RID: 5492 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001574")]
[Address(RVA = "0x4A3D60", Offset = "0x4A2B60", VA = "0x1804A3D60")]
private void Reset()
{
}
// Token: 0x06001575 RID: 5493 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001575")]
[Address(RVA = "0x4A3E00", Offset = "0x4A2C00", VA = "0x1804A3E00")]
private void Reset(int capacity)
{
}
// Token: 0x06001576 RID: 5494 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001576")]
[Address(RVA = "0x4A3030", Offset = "0x4A1E30", VA = "0x1804A3030")]
private NameObjectCollectionBase.NameObjectEntry FindEntry(string key)
{
return null;
}
/// <summary>Gets or sets a value indicating whether the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance is read-only.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance is read-only; otherwise, <see langword="false" />.</returns>
// Token: 0x17000466 RID: 1126
// (get) Token: 0x06001577 RID: 5495 RVA: 0x000098A0 File Offset: 0x00007AA0
[Token(Token = "0x17000466")]
protected bool IsReadOnly
{
[Token(Token = "0x6001577")]
[Address(RVA = "0x42D5E0", Offset = "0x42C3E0", VA = "0x18042D5E0")]
get
{
return default(bool);
}
}
/// <summary>Adds an entry with the specified key and value into the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</summary>
/// <param name="name">The <see cref="T:System.String" /> key of the entry to add. The key can be <see langword="null" />.</param>
/// <param name="value">The <see cref="T:System.Object" /> value of the entry to add. The value can be <see langword="null" />.</param>
/// <exception cref="T:System.NotSupportedException">The collection is read-only.</exception>
// Token: 0x06001578 RID: 5496 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001578")]
[Address(RVA = "0x4A28D0", Offset = "0x4A16D0", VA = "0x1804A28D0")]
protected void BaseAdd(string name, object value)
{
}
/// <summary>Removes the entries with the specified key from the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</summary>
/// <param name="name">The <see cref="T:System.String" /> key of the entries to remove. The key can be <see langword="null" />.</param>
/// <exception cref="T:System.NotSupportedException">The collection is read-only.</exception>
// Token: 0x06001579 RID: 5497 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001579")]
[Address(RVA = "0x4A2D30", Offset = "0x4A1B30", VA = "0x1804A2D30")]
protected void BaseRemove(string name)
{
}
/// <summary>Gets the value of the first entry with the specified key from the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</summary>
/// <param name="name">The <see cref="T:System.String" /> key of the entry to get. The key can be <see langword="null" />.</param>
/// <returns>An <see cref="T:System.Object" /> that represents the value of the first entry with the specified key, if found; otherwise, <see langword="null" />.</returns>
// Token: 0x0600157A RID: 5498 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600157A")]
[Address(RVA = "0x4A2C20", Offset = "0x4A1A20", VA = "0x1804A2C20")]
protected object BaseGet(string name)
{
return null;
}
/// <summary>Sets the value of the first entry with the specified key in the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance, if found; otherwise, adds an entry with the specified key and value into the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</summary>
/// <param name="name">The <see cref="T:System.String" /> key of the entry to set. The key can be <see langword="null" />.</param>
/// <param name="value">The <see cref="T:System.Object" /> that represents the new value of the entry to set. The value can be <see langword="null" />.</param>
/// <exception cref="T:System.NotSupportedException">The collection is read-only.</exception>
// Token: 0x0600157B RID: 5499 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600157B")]
[Address(RVA = "0x4A2F60", Offset = "0x4A1D60", VA = "0x1804A2F60")]
protected void BaseSet(string name, object value)
{
}
/// <summary>Gets the value of the entry at the specified index of the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</summary>
/// <param name="index">The zero-based index of the value to get.</param>
/// <returns>An <see cref="T:System.Object" /> that represents the value of the entry at the specified index.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is outside the valid range of indexes for the collection.</exception>
// Token: 0x0600157C RID: 5500 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600157C")]
[Address(RVA = "0x4A2C40", Offset = "0x4A1A40", VA = "0x1804A2C40")]
protected object BaseGet(int index)
{
return null;
}
/// <summary>Gets the key of the entry at the specified index of the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</summary>
/// <param name="index">The zero-based index of the key to get.</param>
/// <returns>A <see cref="T:System.String" /> that represents the key of the entry at the specified index.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is outside the valid range of indexes for the collection.</exception>
// Token: 0x0600157D RID: 5501 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600157D")]
[Address(RVA = "0x4A2B30", Offset = "0x4A1930", VA = "0x1804A2B30")]
protected string BaseGetKey(int index)
{
return null;
}
/// <summary>Returns an enumerator that iterates through the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" />.</summary>
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> for the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</returns>
// Token: 0x0600157E RID: 5502 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600157E")]
[Address(RVA = "0x4A3100", Offset = "0x4A1F00", VA = "0x1804A3100", Slot = "13")]
public virtual IEnumerator GetEnumerator()
{
return null;
}
/// <summary>Gets the number of key/value pairs contained in the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</summary>
/// <returns>The number of key/value pairs contained in the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</returns>
// Token: 0x17000467 RID: 1127
// (get) Token: 0x0600157F RID: 5503 RVA: 0x000098B8 File Offset: 0x00007AB8
[Token(Token = "0x17000467")]
public virtual int Count
{
[Token(Token = "0x600157F")]
[Address(RVA = "0x4A44B0", Offset = "0x4A32B0", VA = "0x1804A44B0", Slot = "14")]
get
{
return 0;
}
}
/// <summary>Copies the entire <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> 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.Specialized.NameObjectCollectionBase" />. 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.Specialized.NameObjectCollectionBase" /> 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.Specialized.NameObjectCollectionBase" /> cannot be cast automatically to the type of the destination <paramref name="array" />.</exception>
// Token: 0x06001580 RID: 5504 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001580")]
[Address(RVA = "0x4A3EB0", Offset = "0x4A2CB0", VA = "0x1804A3EB0", Slot = "4")]
void ICollection.CopyTo(Array array, int index)
{
}
/// <summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> object.</summary>
/// <returns>An object that can be used to synchronize access to the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> object.</returns>
// Token: 0x17000468 RID: 1128
// (get) Token: 0x06001581 RID: 5505 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000468")]
object ICollection.SyncRoot
{
[Token(Token = "0x6001581")]
[Address(RVA = "0x4A41A0", Offset = "0x4A2FA0", VA = "0x1804A41A0", Slot = "6")]
get
{
return null;
}
}
/// <summary>Gets a value indicating whether access to the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> object is synchronized (thread safe).</summary>
/// <returns>
/// <see langword="true" /> if access to the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> object is synchronized (thread safe); otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
// Token: 0x17000469 RID: 1129
// (get) Token: 0x06001582 RID: 5506 RVA: 0x000098D0 File Offset: 0x00007AD0
[Token(Token = "0x17000469")]
bool ICollection.IsSynchronized
{
[Token(Token = "0x6001582")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Returns a <see cref="T:System.String" /> array that contains all the keys in the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</summary>
/// <returns>A <see cref="T:System.String" /> array that contains all the keys in the <see cref="T:System.Collections.Specialized.NameObjectCollectionBase" /> instance.</returns>
// Token: 0x06001583 RID: 5507 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001583")]
[Address(RVA = "0x4A2A30", Offset = "0x4A1830", VA = "0x1804A2A30")]
protected string[] BaseGetAllKeys()
{
return null;
}
// Token: 0x04000E25 RID: 3621
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000E25")]
private bool _readOnly;
// Token: 0x04000E26 RID: 3622
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000E26")]
private ArrayList _entriesArray;
// Token: 0x04000E27 RID: 3623
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000E27")]
private IEqualityComparer _keyComparer;
// Token: 0x04000E28 RID: 3624
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000E28")]
private Hashtable _entriesTable;
// Token: 0x04000E29 RID: 3625
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000E29")]
private NameObjectCollectionBase.NameObjectEntry _nullKeyEntry;
// Token: 0x04000E2A RID: 3626
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000E2A")]
private SerializationInfo _serializationInfo;
// Token: 0x04000E2B RID: 3627
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000E2B")]
private int _version;
// Token: 0x04000E2C RID: 3628
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000E2C")]
[NonSerialized]
private object _syncRoot;
// Token: 0x04000E2D RID: 3629
[Token(Token = "0x4000E2D")]
private static StringComparer defaultComparer;
// Token: 0x0200033A RID: 826
[Token(Token = "0x200033A")]
internal class NameObjectEntry
{
// Token: 0x06001585 RID: 5509 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001585")]
[Address(RVA = "0x4089A0", Offset = "0x4077A0", VA = "0x1804089A0")]
internal NameObjectEntry(string name, object value)
{
}
// Token: 0x04000E2E RID: 3630
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000E2E")]
internal string Key;
// Token: 0x04000E2F RID: 3631
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000E2F")]
internal object Value;
}
// Token: 0x0200033B RID: 827
[Token(Token = "0x200033B")]
[Serializable]
internal class NameObjectKeysEnumerator : IEnumerator
{
// Token: 0x06001586 RID: 5510 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001586")]
[Address(RVA = "0x4A4650", Offset = "0x4A3450", VA = "0x1804A4650")]
internal NameObjectKeysEnumerator(NameObjectCollectionBase coll)
{
}
// Token: 0x06001587 RID: 5511 RVA: 0x000098E8 File Offset: 0x00007AE8
[Token(Token = "0x6001587")]
[Address(RVA = "0x4A44E0", Offset = "0x4A32E0", VA = "0x1804A44E0", Slot = "4")]
public bool MoveNext()
{
return default(bool);
}
// Token: 0x06001588 RID: 5512 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001588")]
[Address(RVA = "0x4A45C0", Offset = "0x4A33C0", VA = "0x1804A45C0", Slot = "6")]
public void Reset()
{
}
// Token: 0x1700046A RID: 1130
// (get) Token: 0x06001589 RID: 5513 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700046A")]
public object Current
{
[Token(Token = "0x6001589")]
[Address(RVA = "0x4A4690", Offset = "0x4A3490", VA = "0x1804A4690", Slot = "5")]
get
{
return null;
}
}
// Token: 0x04000E30 RID: 3632
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000E30")]
private int _pos;
// Token: 0x04000E31 RID: 3633
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000E31")]
private NameObjectCollectionBase _coll;
// Token: 0x04000E32 RID: 3634
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000E32")]
private int _version;
}
}
}