using System;
using Cpp2IlInjected;
namespace System.Collections.Generic
{
/// Represents a generic collection of key/value pairs.
/// The type of keys in the dictionary.
/// The type of values in the dictionary.
// Token: 0x0200062D RID: 1581
[Token(Token = "0x200062D")]
public interface IDictionary : ICollection>, IEnumerable>, IEnumerable
{
/// Gets or sets the element with the specified key.
/// The key of the element to get or set.
/// The element with the specified key.
///
/// is .
/// The property is retrieved and is not found.
/// The property is set and the is read-only.
// 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;
}
/// Gets an containing the keys of the .
/// An containing the keys of the object that implements .
// Token: 0x170007CB RID: 1995
// (get) Token: 0x06003118 RID: 12568
[Token(Token = "0x170007CB")]
ICollection Keys
{
[Token(Token = "0x6003118")]
[Address(Slot = "2")]
get;
}
/// Gets an containing the values in the .
/// An containing the values in the object that implements .
// Token: 0x170007CC RID: 1996
// (get) Token: 0x06003119 RID: 12569
[Token(Token = "0x170007CC")]
ICollection Values
{
[Token(Token = "0x6003119")]
[Address(Slot = "3")]
get;
}
/// Determines whether the contains an element with the specified key.
/// The key to locate in the .
///
/// if the contains an element with the key; otherwise, .
///
/// is .
// Token: 0x0600311A RID: 12570
[Token(Token = "0x600311A")]
[Address(Slot = "4")]
bool ContainsKey(TKey key);
/// Adds an element with the provided key and value to the .
/// The object to use as the key of the element to add.
/// The object to use as the value of the element to add.
///
/// is .
/// An element with the same key already exists in the .
/// The is read-only.
// Token: 0x0600311B RID: 12571
[Token(Token = "0x600311B")]
[Address(Slot = "5")]
void Add(TKey key, TValue value);
/// Removes the element with the specified key from the .
/// The key of the element to remove.
///
/// if the element is successfully removed; otherwise, . This method also returns if was not found in the original .
///
/// is .
/// The is read-only.
// Token: 0x0600311C RID: 12572
[Token(Token = "0x600311C")]
[Address(Slot = "6")]
bool Remove(TKey key);
/// Gets the value associated with the specified key.
/// The key whose value to get.
/// 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 parameter. This parameter is passed uninitialized.
///
/// if the object that implements contains an element with the specified key; otherwise, .
///
/// is .
// Token: 0x0600311D RID: 12573
[Token(Token = "0x600311D")]
[Address(Slot = "7")]
bool TryGetValue(TKey key, out TValue value);
}
}