22 references to TryGetNonEnumeratedCount
Aspire.Dashboard (1)
Components\Controls\ResourceSelect.razor.cs (1)
48if (Resources?.TryGetNonEnumeratedCount(out var count) is false or null)
GenerateDocumentationAndConfigFiles (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
356if (source.TryGetNonEnumeratedCount(out var count))
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
356if (source.TryGetNonEnumeratedCount(out var count))
Microsoft.CodeAnalysis.Collections.Package (1)
Extensions\IEnumerableExtensions.cs (1)
356if (source.TryGetNonEnumeratedCount(out var count))
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
356if (source.TryGetNonEnumeratedCount(out var count))
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
356if (source.TryGetNonEnumeratedCount(out var count))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
356if (source.TryGetNonEnumeratedCount(out var count))
System.Linq (14)
System\Linq\Concat.SpeedOpt.cs (4)
16if (!_first.TryGetNonEnumeratedCount(out firstCount)) 26if (!_second.TryGetNonEnumeratedCount(out secondCount)) 99if (TryGetNonEnumeratedCount(source, out int count)) 284if (TryGetNonEnumeratedCount(source, out int count))
System\Linq\DefaultIfEmpty.SpeedOpt.cs (1)
87if (_source.TryGetNonEnumeratedCount(out int count))
System\Linq\ElementAt.cs (2)
60if (source.TryGetNonEnumeratedCount(out int count)) 105if (source.TryGetNonEnumeratedCount(out int count))
System\Linq\Reverse.SpeedOpt.cs (1)
28TryGetNonEnumeratedCount(_source, out int count) ? count :
System\Linq\Shuffle.SpeedOpt.cs (3)
30TryGetNonEnumeratedCount(_source, out int count) ? count : 76if (_source.TryGetNonEnumeratedCount(out int sourceCount) && sourceCount <= count) 154TryGetNonEnumeratedCount(_source, out int count) ? Math.Min(_takeCount, count) :
System\Linq\Take.cs (1)
90if (source.TryGetNonEnumeratedCount(out int count))
System\Linq\ToCollection.cs (2)
151if (source.TryGetNonEnumeratedCount(out int capacity)) 209if (source.TryGetNonEnumeratedCount(out int capacity))
Test.Utilities (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
356if (source.TryGetNonEnumeratedCount(out var count))