Implemented interface members:
property
Count
System.Collections.Generic.ICollection<T>.Count
property
Count
System.Collections.Generic.IReadOnlyCollection<T>.Count
property
Count
System.Collections.ICollection.Count
114 references to Count
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
69Debug.Assert(instance.Count == 0);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
92if (toVisit.Count > 0) 197while (toVisit.Count != 0 || unreachableBlocksToVisit.Count != 0);
ILCompiler.Compiler (9)
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (4)
251=> (_supportedInstructionSets.Count > 0 ? "+" : "") 253+ (_supportedInstructionSets.Count > 0 && _unsupportedInstructionSets.Count > 0 ? "," : "") 254+ (_unsupportedInstructionSets.Count > 0 ? "-" : "")
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (3)
276List<ElfSymbol> sortedSymbols = new(definedSymbols.Count + undefinedSymbols.Count); 294bool useArmThunks = _machine is EM_ARM && undefinedSymbols.Count > 0; 343var relocationStream = new MemoryStream(8 * undefinedSymbols.Count);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
375if (undefinedSymbols.Count > 0)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
170if (_reservedStrings.Count > 0)
ILCompiler.ReadyToRun (9)
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (4)
251=> (_supportedInstructionSets.Count > 0 ? "+" : "") 253+ (_supportedInstructionSets.Count > 0 && _unsupportedInstructionSets.Count > 0 ? "," : "") 254+ (_unsupportedInstructionSets.Count > 0 ? "-" : "")
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (3)
276List<ElfSymbol> sortedSymbols = new(definedSymbols.Count + undefinedSymbols.Count); 294bool useArmThunks = _machine is EM_ARM && undefinedSymbols.Count > 0; 343var relocationStream = new MemoryStream(8 * undefinedSymbols.Count);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
375if (undefinedSymbols.Count > 0)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
170if (_reservedStrings.Count > 0)
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ActionSelectionTable.cs (1)
132var routeValues = new string[routeKeys.Count];
Microsoft.CodeAnalysis.Analyzers (14)
MetaAnalyzers\DiagnosticAnalyzerAPIUsageAnalyzer.cs (2)
156if (violatingTypeNamesBuilder.Count > 0) 160if (violatingUsedTypeNamesBuilder.Count == 1 && violatingUsedTypeNamesBuilder.Single() == declaredType.ToDisplayString())
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (9)
319if (newRuleEntriesToAdd?.Count > 0) 378while (entriesToAdd?.Count > 0 && 397if (newRuleEntriesToAdd?.Count > 0 || changedRuleEntriesToAdd?.Count > 0) 403if (changedRuleEntriesToAdd?.Count > 0) 413Debug.Assert(newRuleEntriesToAdd == null || newRuleEntriesToAdd.Count == 0); 417var hasNewRuleEntries = newRuleEntriesToAdd?.Count > 0; 424if (changedRuleEntriesToAdd?.Count > 0) 466if (entriesToAdd?.Count > 0)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
69Debug.Assert(instance.Count == 0);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
92if (toVisit.Count > 0) 197while (toVisit.Count != 0 || unreachableBlocksToVisit.Count != 0);
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
69Debug.Assert(instance.Count == 0);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (6)
206while (worklist.Count > 0 || pendingBlocksNeedingAtLeastOnePass.Count > 0) 213if (worklist.Count > 0) 481if (worklist.Count == 0) 566if (worklist.Count == 0 && pendingBlocksNeedingAtLeastOnePass.Count == 0)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
92if (toVisit.Count > 0) 197while (toVisit.Count != 0 || unreachableBlocksToVisit.Count != 0);
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
92if (toVisit.Count > 0) 197while (toVisit.Count != 0 || unreachableBlocksToVisit.Count != 0);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
69Debug.Assert(instance.Count == 0);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
92if (toVisit.Count > 0) 197while (toVisit.Count != 0 || unreachableBlocksToVisit.Count != 0);
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
92if (toVisit.Count > 0) 197while (toVisit.Count != 0 || unreachableBlocksToVisit.Count != 0);
Microsoft.DotNet.XliffTasks (2)
Tasks\EnsureAllResourcesTranslated.cs (2)
47if (untranslatedResourceSet.Count > 0) 50Log.LogErrorInFile(sourceDocumentPath, $"Found {untranslatedResourceSet.Count} untranslated resource(s): {untranslatedResourceNames}");
Microsoft.ML.AutoML (2)
Sweepers\SmacSweeper.cs (2)
397if (bestK.Count < k || r.CompareTo(worst) > 0) 400if (bestK.Count > k)
Microsoft.ML.Core (1)
Utilities\Utils.cs (1)
105return x == null ? 0 : x.Count;
Microsoft.ML.Sweeper (4)
Algorithms\KdoSweeper.cs (2)
434if (bestK.Count < _args.HistoryLength || r.CompareTo(worst) > 0) 437if (bestK.Count > _args.HistoryLength)
Algorithms\SmacSweeper.cs (2)
388if (bestK.Count < k || r.CompareTo(worst) > 0) 391if (bestK.Count > k)
NuGet.Commands (2)
Utility\MSBuildProjectFrameworkUtility.cs (1)
143if (frameworks.Count > 0)
Utility\RequestRuntimeUtility.cs (1)
29if (runtimes.Count < 1)
NuGet.Resolver (1)
ResolverInputSort.cs (1)
75var nextId = idsToSort.OrderBy(id => parents[id].Count)
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
69Debug.Assert(instance.Count == 0);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
92if (toVisit.Count > 0) 197while (toVisit.Count != 0 || unreachableBlocksToVisit.Count != 0);
System.CodeDom (1)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
2465if (importList.Count > 0)
System.Collections (41)
System\Collections\Generic\SortedDictionary.cs (1)
141return _set.Count;
System\Collections\Generic\SortedSet.cs (37)
94if (sortedSet.Count > 0) 194var stack = new Stack<Node>(2 * (int)Log2(Count + 1)); 290internal virtual int TotalCount() { return Count; } 509public void CopyTo(T[] array) => CopyTo(array, 0, Count); 511public void CopyTo(T[] array, int index) => CopyTo(array, index, Count); 556if (array.Length - index < Count) 804return set1.Count == set2.Count && set1.SetEquals(set2); 853if (asSorted != null && treeSubset == null && Count == 0) 863if (asSorted != null && treeSubset == null && HasEqualComparer(asSorted) && (asSorted.Count > this.Count / 2)) 866T[] merged = new T[asSorted.Count + this.Count]; 987if (Count == 0) 1005T[] merged = new T[this.Count]; 1049List<T> toSave = new List<T>(Count); 1107if (Count == 0) 1174if (Count == 0) 1182if (Count > asSorted.Count) 1190return result.UniqueCount == Count && result.UnfoundCount >= 0; 1211if (Count == 0) 1219if (Count >= asSorted.Count) 1226return result.UniqueCount == Count && result.UnfoundCount > 0; 1241if (Count < asSorted.Count) 1260if (Count == 0) 1270if (asSorted.Count >= Count) 1285return result.UniqueCount < Count && result.UnfoundCount == 0; 1313return result.UniqueCount == Count && result.UnfoundCount == 0; 1320if (Count == 0) 1371if (Count == 0) 1385int originalLastIndex = Count; 1429List<T> matches = new List<T>(this.Count); 1540T[] items = new T[Count];
System\Collections\Generic\SortedSet.TreeSubSet.cs (3)
94if (Count == 0) 99List<T> toRemove = new List<T>(Count); 336return _underlying.Count;
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableSortedSet_1.cs (4)
399if (otherAsSortedSet.Count != this.Count) 406if (otherAsSortedSet.Count < this.Count) 422if (otherSet.Count != this.Count) 453if (this.Count >= otherSet.Count)
System.IO.Packaging (1)
System\IO\Packaging\ZipPackage.cs (1)
572if (pieceSet.Count == 0)