10[DebuggerDisplay(
"Count = {Count}")]
11[
TypeForwardedFrom(
"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
12public class ReadOnlyDictionary<TKey, TValue> :
IDictionary<TKey, TValue>,
ICollection<KeyValuePair<TKey, TValue>>,
IEnumerable<KeyValuePair<TKey, TValue>>,
IEnumerable,
IDictionary,
ICollection,
IReadOnlyDictionary<TKey, TValue>,
IReadOnlyCollection<KeyValuePair<TKey, TValue>>
where TKey :
notnull
46 [DebuggerDisplay(
"Count = {Count}")]
116 [DebuggerDisplay(
"Count = {Count}")]
static void ValidateCopyToArguments(int sourceCount, Array array, int index)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
bool ICollection< KeyValuePair< TKey, TValue > >. IsReadOnly
Enumerator GetEnumerator()
void Add(TKey key, TValue value)
KeyCollection(ICollection< TKey > collection)
void CopyTo(TKey[] array, int arrayIndex)
readonly ICollection< TKey > _collection
IEnumerator< TKey > GetEnumerator()
ValueCollection(ICollection< TValue > collection)
readonly ICollection< TValue > _collection
IEnumerator< TValue > GetEnumerator()
void CopyTo(TValue[] array, int arrayIndex)
ReadOnlyDictionary(IDictionary< TKey, TValue > dictionary)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
ICollection< TValue > IDictionary< TKey, TValue >. Values
static bool IsCompatibleKey(object key)
IEnumerator< KeyValuePair< TKey, TValue > > GetEnumerator()
ICollection IDictionary. Values
IEnumerable< TValue > IReadOnlyDictionary< TKey, TValue >. Values
bool ContainsKey(TKey key)
readonly IDictionary< TKey, TValue > m_dictionary
IEnumerable< TKey > IReadOnlyDictionary< TKey, TValue >. Keys
IDictionary< TKey, TValue > Dictionary
ICollection IDictionary. Keys
ICollection< TKey > IDictionary< TKey, TValue >. Keys
static string NotSupported_ReadOnlyCollection
static string Argument_InvalidArrayType
void CopyTo(T[] array, int arrayIndex)
void CopyTo(Array array, int index)
new IDictionaryEnumerator GetEnumerator()
void Add(object key, object? value)
bool Contains(object key)
IEnumerator GetEnumerator()
readonly IEnumerator< KeyValuePair< TKey, TValue > > _enumerator
DictionaryEnumerator(IDictionary< TKey, TValue > dictionary)
readonly IDictionary< TKey, TValue > _dictionary