public static KeyValuePair <TKey, TValue> ElementAtOrDefault <TKey, TValue>(this SortedDictionary <TKey, TValue> source, int index)
 => ValueReadOnlyCollection.ElementAtOrDefault <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue> >(new ValueWrapper <TKey, TValue>(source), index);
Example #2
0
 public static TSource ElementAtOrDefault <TSource>(this SortedSet <TSource> source, int index)
 => ValueReadOnlyCollection.ElementAtOrDefault <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), index);
Example #3
0
 public static TKey ElementAtOrDefault <TKey, TValue>(this Dictionary <TKey, TValue> .KeyCollection source, int index)
 => ValueReadOnlyCollection.ElementAtOrDefault <ValueWrapper <TKey, TValue>, Dictionary <TKey, TValue> .KeyCollection.Enumerator, TKey>(new ValueWrapper <TKey, TValue>(source), index);