135 lines
6.4 KiB
C#
135 lines
6.4 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Collections
|
|
{
|
|
/// <summary>Represents a nongeneric collection of key/value pairs.</summary>
|
|
// Token: 0x020005B7 RID: 1463
|
|
[Token(Token = "0x20005B7")]
|
|
[ComVisible(true)]
|
|
public interface IDictionary : ICollection, 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, or <see langword="null" /> if the key does not exist.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">The property is set and the <see cref="T:System.Collections.IDictionary" /> object is read-only.
|
|
/// -or-
|
|
/// The property is set, <paramref name="key" /> does not exist in the collection, and the <see cref="T:System.Collections.IDictionary" /> has a fixed size.</exception>
|
|
// Token: 0x170006AB RID: 1707
|
|
[Token(Token = "0x170006AB")]
|
|
object this[object key]
|
|
{
|
|
[Token(Token = "0x6002C68")]
|
|
[Address(Slot = "0")]
|
|
get;
|
|
[Token(Token = "0x6002C69")]
|
|
[Address(Slot = "1")]
|
|
set;
|
|
}
|
|
|
|
/// <summary>Gets an <see cref="T:System.Collections.ICollection" /> object containing the keys of the <see cref="T:System.Collections.IDictionary" /> object.</summary>
|
|
/// <returns>An <see cref="T:System.Collections.ICollection" /> object containing the keys of the <see cref="T:System.Collections.IDictionary" /> object.</returns>
|
|
// Token: 0x170006AC RID: 1708
|
|
// (get) Token: 0x06002C6A RID: 11370
|
|
[Token(Token = "0x170006AC")]
|
|
ICollection Keys
|
|
{
|
|
[Token(Token = "0x6002C6A")]
|
|
[Address(Slot = "2")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets an <see cref="T:System.Collections.ICollection" /> object containing the values in the <see cref="T:System.Collections.IDictionary" /> object.</summary>
|
|
/// <returns>An <see cref="T:System.Collections.ICollection" /> object containing the values in the <see cref="T:System.Collections.IDictionary" /> object.</returns>
|
|
// Token: 0x170006AD RID: 1709
|
|
// (get) Token: 0x06002C6B RID: 11371
|
|
[Token(Token = "0x170006AD")]
|
|
ICollection Values
|
|
{
|
|
[Token(Token = "0x6002C6B")]
|
|
[Address(Slot = "3")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Determines whether the <see cref="T:System.Collections.IDictionary" /> object contains an element with the specified key.</summary>
|
|
/// <param name="key">The key to locate in the <see cref="T:System.Collections.IDictionary" /> object.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the <see cref="T:System.Collections.IDictionary" /> 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: 0x06002C6C RID: 11372
|
|
[Token(Token = "0x6002C6C")]
|
|
[Address(Slot = "4")]
|
|
bool Contains(object key);
|
|
|
|
/// <summary>Adds an element with the provided key and value to the <see cref="T:System.Collections.IDictionary" /> object.</summary>
|
|
/// <param name="key">The <see cref="T:System.Object" /> to use as the key of the element to add.</param>
|
|
/// <param name="value">The <see cref="T:System.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.IDictionary" /> object.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.IDictionary" /> is read-only.
|
|
/// -or-
|
|
/// The <see cref="T:System.Collections.IDictionary" /> has a fixed size.</exception>
|
|
// Token: 0x06002C6D RID: 11373
|
|
[Token(Token = "0x6002C6D")]
|
|
[Address(Slot = "5")]
|
|
void Add(object key, object value);
|
|
|
|
/// <summary>Removes all elements from the <see cref="T:System.Collections.IDictionary" /> object.</summary>
|
|
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.IDictionary" /> object is read-only.</exception>
|
|
// Token: 0x06002C6E RID: 11374
|
|
[Token(Token = "0x6002C6E")]
|
|
[Address(Slot = "6")]
|
|
void Clear();
|
|
|
|
/// <summary>Gets a value indicating whether the <see cref="T:System.Collections.IDictionary" /> object is read-only.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the <see cref="T:System.Collections.IDictionary" /> object is read-only; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x170006AE RID: 1710
|
|
// (get) Token: 0x06002C6F RID: 11375
|
|
[Token(Token = "0x170006AE")]
|
|
bool IsReadOnly
|
|
{
|
|
[Token(Token = "0x6002C6F")]
|
|
[Address(Slot = "7")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether the <see cref="T:System.Collections.IDictionary" /> object has a fixed size.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the <see cref="T:System.Collections.IDictionary" /> object has a fixed size; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x170006AF RID: 1711
|
|
// (get) Token: 0x06002C70 RID: 11376
|
|
[Token(Token = "0x170006AF")]
|
|
bool IsFixedSize
|
|
{
|
|
[Token(Token = "0x6002C70")]
|
|
[Address(Slot = "8")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Returns an <see cref="T:System.Collections.IDictionaryEnumerator" /> object for the <see cref="T:System.Collections.IDictionary" /> object.</summary>
|
|
/// <returns>An <see cref="T:System.Collections.IDictionaryEnumerator" /> object for the <see cref="T:System.Collections.IDictionary" /> object.</returns>
|
|
// Token: 0x06002C71 RID: 11377
|
|
[Token(Token = "0x6002C71")]
|
|
[Address(Slot = "9")]
|
|
IDictionaryEnumerator GetEnumerator();
|
|
|
|
/// <summary>Removes the element with the specified key from the <see cref="T:System.Collections.IDictionary" /> object.</summary>
|
|
/// <param name="key">The key of the element to remove.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.IDictionary" /> object is read-only.
|
|
/// -or-
|
|
/// The <see cref="T:System.Collections.IDictionary" /> has a fixed size.</exception>
|
|
// Token: 0x06002C72 RID: 11378
|
|
[Token(Token = "0x6002C72")]
|
|
[Address(Slot = "10")]
|
|
void Remove(object key);
|
|
}
|
|
}
|