9[DebuggerDisplay(
"Count = {Count}")]
10[TypeForwardedFrom(
"System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
11public class SortedDictionary<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
23 object? IEnumerator.Current
39 object IDictionaryEnumerator.Key
51 object? IDictionaryEnumerator.Value
103 [DebuggerDisplay(
"Count = {Count}")]
112 object? IEnumerator.Current
151 bool ICollection.IsSynchronized =>
false;
211 if (
array.GetLowerBound(0) != 0)
265 [DebuggerDisplay(
"Count = {Count}")]
274 object? IEnumerator.Current
313 bool ICollection.IsSynchronized =>
false;
373 if (
array.GetLowerBound(0) != 0)
477 public TValue
this[TKey
key]
490 return node.Item.Value;
505 _set.UpdateVersion();
545 bool IDictionary.IsFixedSize =>
false;
547 bool IDictionary.IsReadOnly =>
false;
569 if (
value ==
null &&
default(TValue) !=
null)
592 bool ICollection.IsSynchronized =>
false;
644 return node.Item.Value ==
null;
695 if (
node.Item.Value ==
null)
752 value =
default(TValue);
770 if (
value ==
null &&
default(TValue) !=
null)
IEqualityComparer< TKey > Comparer
bool ContainsKey(TKey key)
bool ContainsValue(TValue value)
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)
Enumerator GetEnumerator()
readonly SortedDictionary< TKey, TValue > _dictionary
KeyCollection(SortedDictionary< TKey, TValue > dictionary)
void CopyTo(TKey[] array, int index)
override bool Equals(object? obj)
IComparer< TKey > keyComparer
KeyValuePairComparer(IComparer< TKey >? keyComparer)
override int Compare(KeyValuePair< TKey, TValue > x, KeyValuePair< TKey, TValue > y)
override int GetHashCode()
ValueCollection(SortedDictionary< TKey, TValue > dictionary)
Enumerator GetEnumerator()
void CopyTo(TValue[] array, int index)
readonly SortedDictionary< TKey, TValue > _dictionary
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
SortedDictionary(IComparer< TKey >? comparer)
Enumerator GetEnumerator()
IEnumerable< TValue > IReadOnlyDictionary< TKey, TValue >. Values
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
ICollection< TKey > IDictionary< TKey, TValue >. Keys
static bool IsCompatibleKey(object key)
ICollection< TValue > IDictionary< TKey, TValue >. Values
IEnumerable< TKey > IReadOnlyDictionary< TKey, TValue >. Keys
bool ContainsValue(TValue value)
void Add(TKey key, TValue value)
bool ContainsKey(TKey key)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
ICollection IDictionary. Values
SortedDictionary(IDictionary< TKey, TValue > dictionary, IComparer< TKey >? comparer)
readonly TreeSet< KeyValuePair< TKey, TValue > > _set
SortedDictionary(IDictionary< TKey, TValue > dictionary)
ICollection IDictionary. Keys
static string Arg_WrongType
static string Format(string resourceFormat, object p1)
static string Arg_ArrayPlusOffTooSmall
static string Argument_InvalidArrayType
static string Arg_NonZeroLowerBound
static string Arg_RankMultiDimNotSupported
static string NotSupported_ValueCollectionSet
static string InvalidOperation_EnumOpCantHappen
static string ArgumentOutOfRange_NeedNonNegNum
static string Arg_KeyNotFoundWithKey
static string NotSupported_KeyCollectionSet
void CopyTo(T[] array, int arrayIndex)
void Add(TKey key, TValue value)
new IEnumerator< T > GetEnumerator()
Enumerator(SortedDictionary< TKey, TValue > dictionary, int getEnumeratorRetType)
readonly int _getEnumeratorRetType
SortedSet< KeyValuePair< TKey, TValue > >.Enumerator _treeEnum
KeyValuePair< TKey, TValue > Current
SortedDictionary< TKey, TValue >.Enumerator _dictEnum
Enumerator(SortedDictionary< TKey, TValue > dictionary)
Enumerator(SortedDictionary< TKey, TValue > dictionary)
SortedDictionary< TKey, TValue >.Enumerator _dictEnum