76 lines
3.5 KiB
C#
76 lines
3.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Collections.Generic
|
|
{
|
|
/// <summary>Represents a generic read-only collection of key/value pairs.</summary>
|
|
/// <typeparam name="TKey">The type of keys in the read-only dictionary.</typeparam>
|
|
/// <typeparam name="TValue">The type of values in the read-only dictionary.</typeparam>
|
|
// Token: 0x02000612 RID: 1554
|
|
[Token(Token = "0x2000612")]
|
|
public interface IReadOnlyDictionary<TKey, TValue> : IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
|
|
{
|
|
/// <summary>Determines whether the read-only dictionary contains an element that has the specified key.</summary>
|
|
/// <param name="key">The key to locate.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the read-only dictionary contains an element that has the specified key; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06002F10 RID: 12048
|
|
[Token(Token = "0x6002F10")]
|
|
[Address(Slot = "0")]
|
|
bool ContainsKey(TKey key);
|
|
|
|
/// <summary>Gets the value that is associated with the specified key.</summary>
|
|
/// <param name="key">The key to locate.</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 the <see cref="T:System.Collections.Generic.IReadOnlyDictionary`2" /> interface contains an element that has the specified key; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06002F11 RID: 12049
|
|
[Token(Token = "0x6002F11")]
|
|
[Address(Slot = "1")]
|
|
bool TryGetValue(TKey key, out TValue value);
|
|
|
|
/// <summary>Gets the element that has the specified key in the read-only dictionary.</summary>
|
|
/// <param name="key">The key to locate.</param>
|
|
/// <returns>The element that has the specified key in the read-only dictionary.</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>
|
|
// Token: 0x17000758 RID: 1880
|
|
[Token(Token = "0x17000758")]
|
|
TValue this[TKey key]
|
|
{
|
|
[Token(Token = "0x6002F12")]
|
|
[Address(Slot = "2")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets an enumerable collection that contains the keys in the read-only dictionary.</summary>
|
|
/// <returns>An enumerable collection that contains the keys in the read-only dictionary.</returns>
|
|
// Token: 0x17000759 RID: 1881
|
|
// (get) Token: 0x06002F13 RID: 12051
|
|
[Token(Token = "0x17000759")]
|
|
IEnumerable<TKey> Keys
|
|
{
|
|
[Token(Token = "0x6002F13")]
|
|
[Address(Slot = "3")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets an enumerable collection that contains the values in the read-only dictionary.</summary>
|
|
/// <returns>An enumerable collection that contains the values in the read-only dictionary.</returns>
|
|
// Token: 0x1700075A RID: 1882
|
|
// (get) Token: 0x06002F14 RID: 12052
|
|
[Token(Token = "0x1700075A")]
|
|
IEnumerable<TValue> Values
|
|
{
|
|
[Token(Token = "0x6002F14")]
|
|
[Address(Slot = "4")]
|
|
get;
|
|
}
|
|
}
|
|
}
|