Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

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: 0x02000633 RID: 1587
[Token(Token = "0x2000633")]
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: 0x06003128 RID: 12584
[Token(Token = "0x6003128")]
[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: 0x06003129 RID: 12585
[Token(Token = "0x6003129")]
[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: 0x170007D0 RID: 2000
[Token(Token = "0x170007D0")]
TValue this[TKey key]
{
[Token(Token = "0x600312A")]
[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: 0x170007D1 RID: 2001
// (get) Token: 0x0600312B RID: 12587
[Token(Token = "0x170007D1")]
IEnumerable<TKey> Keys
{
[Token(Token = "0x600312B")]
[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: 0x170007D2 RID: 2002
// (get) Token: 0x0600312C RID: 12588
[Token(Token = "0x170007D2")]
IEnumerable<TValue> Values
{
[Token(Token = "0x600312C")]
[Address(Slot = "4")]
get;
}
}
}