12 references to TryGetNonEnumeratedCount
Aspire.Dashboard (1)
Components\Controls\ResourceSelect.razor.cs (1)
48if (Resources?.TryGetNonEnumeratedCount(out var count) is false or null)
Microsoft.Build (1)
Collections\CopyOnReadEnumerable.cs (1)
66if (_backingEnumerable.TryGetNonEnumeratedCount(out int count))
System.Linq (10)
System\Linq\Concat.SpeedOpt.cs (4)
16if (!_first.TryGetNonEnumeratedCount(out firstCount)) 26if (!_second.TryGetNonEnumeratedCount(out secondCount)) 99if (TryGetNonEnumeratedCount(source, out int count)) 280if (TryGetNonEnumeratedCount(source, out int count))
System\Linq\ElementAt.cs (2)
62if (source.TryGetNonEnumeratedCount(out int count)) 107if (source.TryGetNonEnumeratedCount(out int count))
System\Linq\Reverse.SpeedOpt.cs (1)
28TryGetNonEnumeratedCount(_source, out int count) ? count :
System\Linq\Take.cs (1)
84if (source.TryGetNonEnumeratedCount(out int count))
System\Linq\ToCollection.cs (2)
155if (source.TryGetNonEnumeratedCount(out int capacity)) 213if (source.TryGetNonEnumeratedCount(out int capacity))