a
This commit is contained in:
@@ -0,0 +1,186 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Collections.ObjectModel
|
||||
{
|
||||
/// <summary>Provides the abstract base class for a collection whose keys are embedded in the values.</summary>
|
||||
/// <typeparam name="TKey">The type of keys in the collection.</typeparam>
|
||||
/// <typeparam name="TItem">The type of items in the collection.</typeparam>
|
||||
// Token: 0x020005D3 RID: 1491
|
||||
[Token(Token = "0x20005D3")]
|
||||
[ComVisible(false)]
|
||||
[DebuggerTypeProxy(typeof(Mscorlib_KeyedCollectionDebugView<, >))]
|
||||
[DebuggerDisplay("Count = {Count}")]
|
||||
[Serializable]
|
||||
public abstract class KeyedCollection<TKey, TItem> : Collection<TItem>
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.ObjectModel.KeyedCollection`2" /> class that uses the default equality comparer.</summary>
|
||||
// Token: 0x06002D64 RID: 11620 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002D64")]
|
||||
[Address(RVA = "0x2B02B70", Offset = "0x2B01970", VA = "0x182B02B70")]
|
||||
protected KeyedCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.ObjectModel.KeyedCollection`2" /> class that uses the specified equality comparer.</summary>
|
||||
/// <param name="comparer">The implementation of the <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> generic interface to use when comparing keys, or <see langword="null" /> to use the default equality comparer for the type of the key, obtained from <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />.</param>
|
||||
// Token: 0x06002D65 RID: 11621 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002D65")]
|
||||
[Address(RVA = "0x28EB600", Offset = "0x28EA400", VA = "0x1828EB600")]
|
||||
protected KeyedCollection(IEqualityComparer<TKey> comparer)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.ObjectModel.KeyedCollection`2" /> class that uses the specified equality comparer and creates a lookup dictionary when the specified threshold is exceeded.</summary>
|
||||
/// <param name="comparer">The implementation of the <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> generic interface to use when comparing keys, or <see langword="null" /> to use the default equality comparer for the type of the key, obtained from <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />.</param>
|
||||
/// <param name="dictionaryCreationThreshold">The number of elements the collection can hold without creating a lookup dictionary (0 creates the lookup dictionary when the first item is added), or -1 to specify that a lookup dictionary is never created.</param>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="dictionaryCreationThreshold" /> is less than -1.</exception>
|
||||
// Token: 0x06002D66 RID: 11622 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002D66")]
|
||||
[Address(RVA = "0x32039C0", Offset = "0x32027C0", VA = "0x1832039C0")]
|
||||
protected KeyedCollection(IEqualityComparer<TKey> comparer, int dictionaryCreationThreshold)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the element with the specified key.</summary>
|
||||
/// <param name="key">The key of the element to get.</param>
|
||||
/// <returns>The element with the specified key. If an element with the specified key is not found, an exception is thrown.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.Collections.Generic.KeyNotFoundException">An element with the specified key does not exist in the collection.</exception>
|
||||
// Token: 0x170006FC RID: 1788
|
||||
[Token(Token = "0x170006FC")]
|
||||
public TItem this[TKey key]
|
||||
{
|
||||
[Token(Token = "0x6002D67")]
|
||||
[Address(RVA = "0x3203A60", Offset = "0x3202860", VA = "0x183203A60")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Determines whether the collection contains an element with the specified key.</summary>
|
||||
/// <param name="key">The key to locate in the <see cref="T:System.Collections.ObjectModel.KeyedCollection`2" />.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the <see cref="T:System.Collections.ObjectModel.KeyedCollection`2" /> contains an element with the specified key; otherwise, <see langword="false" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
||||
// Token: 0x06002D68 RID: 11624 RVA: 0x00017BE0 File Offset: 0x00015DE0
|
||||
[Token(Token = "0x6002D68")]
|
||||
[Address(RVA = "0x3203170", Offset = "0x3201F70", VA = "0x183203170")]
|
||||
public bool Contains(TKey key)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Gets the lookup dictionary of the <see cref="T:System.Collections.ObjectModel.KeyedCollection`2" />.</summary>
|
||||
/// <returns>The lookup dictionary of the <see cref="T:System.Collections.ObjectModel.KeyedCollection`2" />, if it exists; otherwise, <see langword="null" />.</returns>
|
||||
// Token: 0x170006FD RID: 1789
|
||||
// (get) Token: 0x06002D69 RID: 11625 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170006FD")]
|
||||
protected IDictionary<TKey, TItem> Dictionary
|
||||
{
|
||||
[Token(Token = "0x6002D69")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Removes all elements from the <see cref="T:System.Collections.ObjectModel.KeyedCollection`2" />.</summary>
|
||||
// Token: 0x06002D6A RID: 11626 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002D6A")]
|
||||
[Address(RVA = "0x3203110", Offset = "0x3201F10", VA = "0x183203110", Slot = "35")]
|
||||
protected override void ClearItems()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>When implemented in a derived class, extracts the key from the specified element.</summary>
|
||||
/// <param name="item">The element from which to extract the key.</param>
|
||||
/// <returns>The key for the specified element.</returns>
|
||||
// Token: 0x06002D6B RID: 11627
|
||||
[Token(Token = "0x6002D6B")]
|
||||
[Address(Slot = "39")]
|
||||
protected abstract TKey GetKeyForItem(TItem item);
|
||||
|
||||
/// <summary>Inserts an element into the <see cref="T:System.Collections.ObjectModel.KeyedCollection`2" /> at the specified index.</summary>
|
||||
/// <param name="index">The zero-based index at which <paramref name="item" /> should be inserted.</param>
|
||||
/// <param name="item">The object to insert.</param>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="index" /> is less than 0.
|
||||
/// -or-
|
||||
/// <paramref name="index" /> is greater than <see cref="P:System.Collections.ObjectModel.Collection`1.Count" />.</exception>
|
||||
// Token: 0x06002D6C RID: 11628 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002D6C")]
|
||||
[Address(RVA = "0x3203630", Offset = "0x3202430", VA = "0x183203630", Slot = "36")]
|
||||
protected override void InsertItem(int index, TItem item)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Removes the element at the specified index of the <see cref="T:System.Collections.ObjectModel.KeyedCollection`2" />.</summary>
|
||||
/// <param name="index">The index of the element to remove.</param>
|
||||
// Token: 0x06002D6D RID: 11629 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002D6D")]
|
||||
[Address(RVA = "0x32036D0", Offset = "0x32024D0", VA = "0x1832036D0", Slot = "37")]
|
||||
protected override void RemoveItem(int index)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Replaces the item at the specified index with the specified item.</summary>
|
||||
/// <param name="index">The zero-based index of the item to be replaced.</param>
|
||||
/// <param name="item">The new item.</param>
|
||||
// Token: 0x06002D6E RID: 11630 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002D6E")]
|
||||
[Address(RVA = "0x3203800", Offset = "0x3202600", VA = "0x183203800", Slot = "38")]
|
||||
protected override void SetItem(int index, TItem item)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002D6F RID: 11631 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002D6F")]
|
||||
[Address(RVA = "0x3203050", Offset = "0x3201E50", VA = "0x183203050")]
|
||||
private void AddKey(TKey key, TItem item)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002D70 RID: 11632 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002D70")]
|
||||
[Address(RVA = "0x32033E0", Offset = "0x32021E0", VA = "0x1832033E0")]
|
||||
private void CreateDictionary()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002D71 RID: 11633 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002D71")]
|
||||
[Address(RVA = "0x32037D0", Offset = "0x32025D0", VA = "0x1832037D0")]
|
||||
private void RemoveKey(TKey key)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040019E1 RID: 6625
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x40019E1")]
|
||||
private IEqualityComparer<TKey> comparer;
|
||||
|
||||
// Token: 0x040019E2 RID: 6626
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x40019E2")]
|
||||
private Dictionary<TKey, TItem> dict;
|
||||
|
||||
// Token: 0x040019E3 RID: 6627
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x40019E3")]
|
||||
private int keyCount;
|
||||
|
||||
// Token: 0x040019E4 RID: 6628
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x40019E4")]
|
||||
private int threshold;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user