88 references to Empty
Microsoft.AspNetCore.Http.Results.Tests (4)
ResultsTests.cs (1)
1781(() => Results.ServerSentEvents(AsyncEnumerable.Empty<string>(), null), typeof(ServerSentEventsResult<string>)),
ServerSentEventsResultTests.cs (3)
26var events = AsyncEnumerable.Empty<string>(); 98var events = AsyncEnumerable.Empty<string>(); 270var events = AsyncEnumerable.Empty<string>();
System.Linq.AsyncEnumerable (84)
System\Linq\AggregateBy.cs (4)
46source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, TAccumulate>>() : 123source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, TAccumulate>>() : 196source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, TAccumulate>>() : 274source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, TAccumulate>>() :
System\Linq\Cast.cs (1)
30source.IsKnownEmpty() ? Empty<TResult>() :
System\Linq\Chunk.cs (1)
34source.IsKnownEmpty() ? Empty<TSource[]>() :
System\Linq\CountBy.cs (2)
32source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, int>>() : 89source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, int>>() :
System\Linq\Distinct.cs (1)
25source.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\DistinctBy.cs (2)
36source.IsKnownEmpty() ? Empty<TSource>() : 92source.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\Except.cs (1)
30first.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\ExceptBy.cs (2)
37first.IsKnownEmpty() ? Empty<TSource>() : 103first.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\GroupBy.cs (8)
36source.IsKnownEmpty() ? Empty<IGrouping<TKey, TSource>>() : 73source.IsKnownEmpty() ? Empty<IGrouping<TKey, TSource>>() : 119source.IsKnownEmpty() ? Empty<IGrouping<TKey, TElement>>() : 166source.IsKnownEmpty() ? Empty<IGrouping<TKey, TElement>>() : 212source.IsKnownEmpty() ? Empty<TResult>() : 261source.IsKnownEmpty() ? Empty<TResult>() : 314source.IsKnownEmpty() ? Empty<TResult>() : 368source.IsKnownEmpty() ? Empty<TResult>() :
System\Linq\GroupJoin.cs (2)
51outer.IsKnownEmpty() ? Empty<TResult>() : 122outer.IsKnownEmpty() ? Empty<TResult>() :
System\Linq\Index.cs (1)
24source.IsKnownEmpty() ? Empty<(int Index, TSource Item)>() :
System\Linq\Intersect.cs (1)
30first.IsKnownEmpty() || second.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\IntersectBy.cs (2)
42first.IsKnownEmpty() || second.IsKnownEmpty() ? Empty<TSource>() : 112first.IsKnownEmpty() || second.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\Join.cs (2)
48outer.IsKnownEmpty() || inner.IsKnownEmpty() ? Empty<TResult>() : 127outer.IsKnownEmpty() || inner.IsKnownEmpty() ? Empty<TResult>() :
System\Linq\LeftJoin.cs (2)
45outer.IsKnownEmpty() ? Empty<TResult>() : 122outer.IsKnownEmpty() ? Empty<TResult>() :
System\Linq\OfType.cs (1)
30source.IsKnownEmpty() ? Empty<TResult>() :
System\Linq\Range.cs (1)
20return Empty<int>();
System\Linq\Repeat.cs (1)
20return Empty<TResult>();
System\Linq\Reverse.cs (1)
23source.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\RightJoin.cs (2)
45inner.IsKnownEmpty() ? Empty<TResult>() : 123inner.IsKnownEmpty() ? Empty<TResult>() :
System\Linq\Select.cs (4)
32source.IsKnownEmpty() ? Empty<TResult>() : 66source.IsKnownEmpty() ? Empty<TResult>() : 103source.IsKnownEmpty() ? Empty<TResult>() : 141source.IsKnownEmpty() ? Empty<TResult>() :
System\Linq\SelectMany.cs (13)
35source.IsKnownEmpty() ? Empty<TResult>() : 75source.IsKnownEmpty() ? Empty<TResult>() : 115source.IsKnownEmpty() ? Empty<TResult>() : 156source.IsKnownEmpty() ? Empty<TResult>() : 198source.IsKnownEmpty() ? Empty<TResult>() : 240source.IsKnownEmpty() ? Empty<TResult>() : 290source.IsKnownEmpty() ? Empty<TResult>() : 340source.IsKnownEmpty() ? Empty<TResult>() : 390source.IsKnownEmpty() ? Empty<TResult>() : 440source.IsKnownEmpty() ? Empty<TResult>() : 489source.IsKnownEmpty() ? Empty<TResult>() : 539source.IsKnownEmpty() ? Empty<TResult>() : 589source.IsKnownEmpty() ? Empty<TResult>() :
System\Linq\Shuffle.cs (1)
28source.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\Skip.cs (1)
25source.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\SkipLast.cs (1)
29source.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\SkipWhile.cs (4)
35source.IsKnownEmpty() ? Empty<TSource>() : 90source.IsKnownEmpty() ? Empty<TSource>() : 149source.IsKnownEmpty() ? Empty<TSource>() : 209source.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\Take.cs (4)
30source.IsKnownEmpty() || count <= 0 ? Empty<TSource>() : 68return Empty<TSource>(); 81return Empty<TSource>(); 87startIndex >= endIndex ? Empty<TSource>() :
System\Linq\TakeLast.cs (1)
22source.IsKnownEmpty() || count <= 0 ? Empty<TSource>() :
System\Linq\TakeWhile.cs (4)
31source.IsKnownEmpty() ? Empty<TSource>() : 68source.IsKnownEmpty() ? Empty<TSource>() : 109source.IsKnownEmpty() ? Empty<TSource>() : 151source.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\ToAsyncEnumerable.cs (2)
25TSource[] array => array.Length == 0 ? Empty<TSource>() : FromArray(array), 28_ when source == Enumerable.Empty<TSource>() => Empty<TSource>(),
System\Linq\Union.cs (1)
30first.IsKnownEmpty() && second.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\UnionBy.cs (2)
34first.IsKnownEmpty() && second.IsKnownEmpty() ? Empty<TSource>() : 85first.IsKnownEmpty() && second.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\Where.cs (4)
28source.IsKnownEmpty() ? Empty<TSource>() : 61source.IsKnownEmpty() ? Empty<TSource>() : 100source.IsKnownEmpty() ? Empty<TSource>() : 140source.IsKnownEmpty() ? Empty<TSource>() :
System\Linq\Zip.cs (4)
37first.IsKnownEmpty() || second.IsKnownEmpty() ? Empty<TResult>() : 94first.IsKnownEmpty() || second.IsKnownEmpty() ? Empty<TResult>() : 143first.IsKnownEmpty() || second.IsKnownEmpty() ? Empty<(TFirst, TSecond)>() : 196first.IsKnownEmpty() || second.IsKnownEmpty() || third.IsKnownEmpty() ? Empty<(TFirst, TSecond, TThird)>() :