コード例 #1
0
        public static Option <TSource> Single <TSource>(this ImmutableList <TSource> source)
#pragma warning disable HLQ005 // Avoid Single() and SingleOrDefault()
        => ReadOnlyListExtensions.Single <ValueWrapper <TSource>, TSource>(new ValueWrapper <TSource>(source));
コード例 #2
0
 public static Option <TSource> Single <TSource>(this ImmutableArray <TSource> source)
 => ReadOnlyListExtensions.Single <ImmutableArray <TSource>, TSource>(source);