示例#1
0
 public static TSource First <TSource>(this SortedSet <TSource> source)
 => ValueReadOnlyCollection.First <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source));
示例#2
0
 public static TSource First <TSource>(this ImmutableHashSet <TSource> source)
 => ValueReadOnlyCollection.First <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source));
 public static KeyValuePair <TKey, TValue> First <TKey, TValue>(this SortedDictionary <TKey, TValue> source)
 => ValueReadOnlyCollection.First <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue> >(new ValueWrapper <TKey, TValue>(source));
示例#4
0
 public static Option <TSource> First <TSource>(this LinkedList <TSource> source)
 => ValueReadOnlyCollection.First <ValueWrapper <TSource>, LinkedList <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source));
示例#5
0
 public static TKey First <TKey, TValue>(this SortedDictionary <TKey, TValue> .KeyCollection source)
 => ValueReadOnlyCollection.First <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .KeyCollection.Enumerator, TKey>(new ValueWrapper <TKey, TValue>(source));
示例#6
0
 public static TValue First <TKey, TValue>(this Dictionary <TKey, TValue> .ValueCollection source)
 => ValueReadOnlyCollection.First <ValueWrapper <TKey, TValue>, Dictionary <TKey, TValue> .ValueCollection.Enumerator, TValue>(new ValueWrapper <TKey, TValue>(source));