m
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Collections.Generic
|
||||
{
|
||||
/// <summary>Represents a generic collection of key/value pairs.</summary>
|
||||
/// <typeparam name="TKey">The type of keys in the dictionary.</typeparam>
|
||||
/// <typeparam name="TValue">The type of values in the dictionary.</typeparam>
|
||||
// Token: 0x0200062D RID: 1581
|
||||
[Token(Token = "0x200062D")]
|
||||
public interface IDictionary<TKey, TValue> : ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
|
||||
{
|
||||
/// <summary>Gets or sets the element with the specified key.</summary>
|
||||
/// <param name="key">The key of the element to get or set.</param>
|
||||
/// <returns>The element with the specified key.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.Collections.Generic.KeyNotFoundException">The property is retrieved and <paramref name="key" /> is not found.</exception>
|
||||
/// <exception cref="T:System.NotSupportedException">The property is set and the <see cref="T:System.Collections.Generic.IDictionary`2" /> is read-only.</exception>
|
||||
// Token: 0x170007CA RID: 1994
|
||||
[Token(Token = "0x170007CA")]
|
||||
TValue this[TKey key]
|
||||
{
|
||||
[Token(Token = "0x6003116")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
[Token(Token = "0x6003117")]
|
||||
[Address(Slot = "1")]
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>Gets an <see cref="T:System.Collections.Generic.ICollection`1" /> containing the keys of the <see cref="T:System.Collections.Generic.IDictionary`2" />.</summary>
|
||||
/// <returns>An <see cref="T:System.Collections.Generic.ICollection`1" /> containing the keys of the object that implements <see cref="T:System.Collections.Generic.IDictionary`2" />.</returns>
|
||||
// Token: 0x170007CB RID: 1995
|
||||
// (get) Token: 0x06003118 RID: 12568
|
||||
[Token(Token = "0x170007CB")]
|
||||
ICollection<TKey> Keys
|
||||
{
|
||||
[Token(Token = "0x6003118")]
|
||||
[Address(Slot = "2")]
|
||||
get;
|
||||
}
|
||||
|
||||
/// <summary>Gets an <see cref="T:System.Collections.Generic.ICollection`1" /> containing the values in the <see cref="T:System.Collections.Generic.IDictionary`2" />.</summary>
|
||||
/// <returns>An <see cref="T:System.Collections.Generic.ICollection`1" /> containing the values in the object that implements <see cref="T:System.Collections.Generic.IDictionary`2" />.</returns>
|
||||
// Token: 0x170007CC RID: 1996
|
||||
// (get) Token: 0x06003119 RID: 12569
|
||||
[Token(Token = "0x170007CC")]
|
||||
ICollection<TValue> Values
|
||||
{
|
||||
[Token(Token = "0x6003119")]
|
||||
[Address(Slot = "3")]
|
||||
get;
|
||||
}
|
||||
|
||||
/// <summary>Determines whether the <see cref="T:System.Collections.Generic.IDictionary`2" /> contains an element with the specified key.</summary>
|
||||
/// <param name="key">The key to locate in the <see cref="T:System.Collections.Generic.IDictionary`2" />.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the <see cref="T:System.Collections.Generic.IDictionary`2" /> contains an element with the key; otherwise, <see langword="false" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
||||
// Token: 0x0600311A RID: 12570
|
||||
[Token(Token = "0x600311A")]
|
||||
[Address(Slot = "4")]
|
||||
bool ContainsKey(TKey key);
|
||||
|
||||
/// <summary>Adds an element with the provided key and value to the <see cref="T:System.Collections.Generic.IDictionary`2" />.</summary>
|
||||
/// <param name="key">The object to use as the key of the element to add.</param>
|
||||
/// <param name="value">The object to use as the value of the element to add.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">An element with the same key already exists in the <see cref="T:System.Collections.Generic.IDictionary`2" />.</exception>
|
||||
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.IDictionary`2" /> is read-only.</exception>
|
||||
// Token: 0x0600311B RID: 12571
|
||||
[Token(Token = "0x600311B")]
|
||||
[Address(Slot = "5")]
|
||||
void Add(TKey key, TValue value);
|
||||
|
||||
/// <summary>Removes the element with the specified key from the <see cref="T:System.Collections.Generic.IDictionary`2" />.</summary>
|
||||
/// <param name="key">The key of the element to remove.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the element is successfully removed; otherwise, <see langword="false" />. This method also returns <see langword="false" /> if <paramref name="key" /> was not found in the original <see cref="T:System.Collections.Generic.IDictionary`2" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.IDictionary`2" /> is read-only.</exception>
|
||||
// Token: 0x0600311C RID: 12572
|
||||
[Token(Token = "0x600311C")]
|
||||
[Address(Slot = "6")]
|
||||
bool Remove(TKey key);
|
||||
|
||||
/// <summary>Gets the value associated with the specified key.</summary>
|
||||
/// <param name="key">The key whose value to get.</param>
|
||||
/// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the <paramref name="value" /> parameter. This parameter is passed uninitialized.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the object that implements <see cref="T:System.Collections.Generic.IDictionary`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: 0x0600311D RID: 12573
|
||||
[Token(Token = "0x600311D")]
|
||||
[Address(Slot = "7")]
|
||||
bool TryGetValue(TKey key, out TValue value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user