Implemented interface members:
61 references to Count
AnalyzerRunner (2)
CodeRefactoringRunner.cs (1)
188if (options.AnalyzerNames.Count == 0)
DiagnosticAnalyzerRunner.cs (1)
271else if (options.AnalyzerNames.Count == 0)
Microsoft.Build (1)
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
148var anyGlobsToIgnore = globsToIgnore.Count > 0;
Microsoft.Build.Engine.UnitTests (1)
EvaluationProfiler_Tests.cs (1)
256Assert.Equal(allIds.Count, allUniqueIds.Count);
Microsoft.CodeAnalysis (10)
Collections\CollectionsExtensions.cs (1)
25return hashSet == null || hashSet.Count == 0;
Collections\ImmutableHashSetExtensions.cs (2)
29if (set.Count != otherSet.Count)
CommandLine\SarifV2ErrorLogger.cs (1)
335(descriptorInfo.EffectiveSeverities.Count != 1 || descriptorInfo.EffectiveSeverities.Single() != defaultSeverity);
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
1264if (generatedCodeSymbolsInTree.Count > 0) 2986Debug.Assert(operationsToAnalyze.ToImmutableHashSet().Count == operationsToAnalyze.Count);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
656var builder = ArrayBuilder<string>.GetInstance(source.Count);
InternalUtilities\MultiDictionary.cs (2)
48_count = set.Count; 127return set.Count;
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
79/// <inheritdoc cref="ImmutableHashSet{T}.Count"/>
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
76Debug.Assert(options.Count > 1);
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
403var hasNonCompilerAnalyzers = idsToAnalyze.Count > compilerDiagnosticIds.Count;
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (2)
48_count = set.Count; 127return set.Count;
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
79/// <inheritdoc cref="ImmutableHashSet{T}.Count"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
515switch (targets.Count)
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedHashSet`1.cs (1)
79/// <inheritdoc cref="ImmutableHashSet{T}.Count"/>
Microsoft.CodeAnalysis.CSharp (13)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
771if (expectedConvention.UnmanagedCallingConventionTypes.Count != actualUnmanagedCallingConventionTypes.Count)
Compilation\CSharpCompilation.cs (1)
3181if (updated.Count == SyntaxTrees.Length)
Symbols\Source\ConstantEvaluationHelpers.cs (3)
174if (node.Dependencies.Count == 0) 365Debug.Assert(graph.Values.Sum(n => n.DependedOnBy.Count) == graph.Values.Sum(n => n.Dependencies.Count));
Utilities\ValueSetFactory.EnumeratedValueSet.cs (7)
66var candidates = _tc.RandomValues(_membersIncludedOrExcluded.Count + 1, new Random(0), _membersIncludedOrExcluded.Count + 1); 97switch (_membersIncludedOrExcluded.Count) 124var (larger, smaller) = (this._membersIncludedOrExcluded.Count > other._membersIncludedOrExcluded.Count) ? (this, other) : (other, this); 147var (larger, smaller) = (this._membersIncludedOrExcluded.Count > other._membersIncludedOrExcluded.Count) ? (this, other) : (other, this);
Microsoft.CodeAnalysis.EditorFeatures (1)
Workspaces\AbstractTextBufferVisibilityTracker.cs (1)
163Contract.ThrowIfTrue(Callbacks.Count > 0);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
VS\IFSharpWorkspaceProjectContextFactory.cs (1)
143=> _metadataReferences.Count;
Microsoft.CodeAnalysis.Features (6)
Completion\CompletionService.ProviderManager.cs (2)
229if (x == null || y == null || x.Count != y.Count)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (1)
254Debug.Assert(!workItem.InvocationReasons.Contains(UnitTestingPredefinedInvocationReasons.Reanalyze) || workItem.SpecificAnalyzers.Count > 0);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingWorkItem.cs (1)
47=> SpecificAnalyzers?.Count > 0 ? SpecificAnalyzers.Where(allAnalyzers.Contains) : allAnalyzers;
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
76Debug.Assert(options.Count > 1);
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
403var hasNonCompilerAnalyzers = idsToAnalyze.Count > compilerDiagnosticIds.Count;
Microsoft.CodeAnalysis.UnitTests (2)
Analyzers\AnalyzerFileReferenceTests.cs (2)
102Assert.Equal(6, analyzerTypeNameMap[LanguageNames.CSharp].Count); 111Assert.Equal(6, analyzerTypeNameMap[LanguageNames.VisualBasic].Count);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\SourceFieldSymbol.vb (1)
441If graph.TryGetValue(field, node) AndAlso node.Dependencies.Count = 0 Then
Microsoft.CodeAnalysis.Workspaces (10)
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (1)
242Contract.ThrowIfFalse(projects.Count == 1, "Only a single project should be passed in");
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
160Contract.ThrowIfTrue(conflictLocations.Count != 0, "We're the first phase, so we should have no conflict locations yet"); 168if (conflictLocations.Count == 0)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (2)
48_count = set.Count; 127return set.Count;
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
79/// <inheritdoc cref="ImmutableHashSet{T}.Count"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
515switch (targets.Count)
Workspace\Solution\ProjectDependencyGraph.cs (2)
471Debug.Assert(projectIds.Count >= referencesMap.Count); 493Debug.Assert(projectIds.Count >= reverseReferencesMap.Count);
Workspace\Solution\SolutionState.cs (1)
155Contract.ThrowIfFalse(ProjectStates.Count == _dependencyGraph.ProjectIds.Count);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (2)
48_count = set.Count; 127return set.Count;
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
79/// <inheritdoc cref="ImmutableHashSet{T}.Count"/>
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableHashSet_1.cs (3)
102get { return this.Count == 0; } 496Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 541Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));