Implemented interface members:
138 references to Count
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Binding\FormDataMapperTests.cs (2)
952Assert.Equal(expected.Count, dictionary.Count);
Microsoft.Build (9)
Collections\CopyOnWritePropertyDictionary.cs (4)
83public int Count => _backing.Count; 174if (thisBacking.Count != thatBacking.Count) 224if (thisBacking.Count != otherDict.Count)
CopyOnWriteDictionary.cs (1)
124public int Count => _backing.Count;
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
293if (_referencedItemLists.Count >= 0)
Graph\ProjectInterpretation.cs (3)
325if (newProperties.Count == 0) 361return Properties.Count == 0 && AdditionalProperties.Count == 0 && UndefineProperties.Count == 0;
Microsoft.Build.BuildCheck.UnitTests (3)
EditorConfig_Tests.cs (1)
993Assert.Equal(0, properties.Count);
EditorConfigParser_Tests.cs (2)
137csSection.Properties.Count.ShouldBe(2); 143mdSection.Properties.Count.ShouldBe(1);
Microsoft.Build.Tasks.Core (1)
CopyOnWriteDictionary.cs (1)
124public int Count => _backing.Count;
Microsoft.Build.Utilities.Core (1)
CopyOnWriteDictionary.cs (1)
124public int Count => _backing.Count;
Microsoft.CodeAnalysis (11)
CommandLine\CommonCompiler.cs (2)
1030if (options.Count > 0) 1045if (options.Count > 0)
CommandLine\SarifErrorLogger.cs (2)
93if (diagnostic.WarningLevel > 0 || diagnostic.Properties.Count > 0) 102if (diagnostic.Properties.Count > 0)
DiagnosticAnalyzer\AnalysisResult.cs (4)
97if (SyntaxDiagnostics.Count > 0 || SemanticDiagnostics.Count > 0 || AdditionalFileDiagnostics.Count > 0 || CompilationDiagnostics.Count > 0)
InternalUtilities\ImmutableSetWithInsertionOrder`1.cs (1)
28get { return _map.Count; }
Operations\ControlFlowGraph.cs (2)
51Debug.Assert(localFunctionsMap.Count == localFunctions.Length); 303Interlocked.CompareExchange(ref _lazyAnonymousFunctionsGraphs, new ControlFlowGraph[_anonymousFunctionsMap.Count], null);
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (2)
36Debug.Assert(binaryToAssignmentMap.Count == assignmentToTokenMap.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (4)
92return _backwardMap.Count == 0; 100Debug.Assert(_forwardMap.Count == _backwardMap.Count); 101return _backwardMap.Count;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (2)
15if (self.Count != other.Count)
Microsoft.CodeAnalysis.CSharp (8)
Binder\DecisionDagBuilder.cs (1)
853if (existingState.RemainingValues.Count != newRemainingValues.Count ||
Binder\ImportChain.cs (1)
98var aliases = ArrayBuilder<string>.GetInstance(aliasSymbols.Count);
BoundTree\UnboundLambda.cs (1)
1242switch (candidates.Count)
Compilation\SyntaxAndDeclarationManager.cs (1)
562Debug.Assert(newTrees.Length == ordinalMap.Count);
FlowAnalysis\NullableWalker.DebugVerifier.cs (4)
44if (verifier._analyzedNullabilityMap.Count > verifier._visitedExpressions.Count) 50RoslynDebug.Assert(false, $"Analyzed {verifier._analyzedNullabilityMap.Count} nodes in NullableWalker, but DebugVerifier expects {verifier._visitedExpressions.Count}. Example of unverified node: {analyzedNode.GetDebuggerDisplay()}"); 54else if (verifier._analyzedNullabilityMap.Count < verifier._visitedExpressions.Count) 60RoslynDebug.Assert(false, $"Analyzed {verifier._analyzedNullabilityMap.Count} nodes in NullableWalker, but DebugVerifier expects {verifier._visitedExpressions.Count}. Example of unanalyzed node: {verifiedNode.GetDebuggerDisplay()}");
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
69if (diagnostic.Properties.Count > 0)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Rename\CSharpInlineRenameServiceTests.cs (2)
40if (x.Count != y.Count)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
69if (diagnostic.Properties.Count > 0)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests.cs (2)
3180Assert.Equal(8, runResult.TrackedSteps.Count); 3181Assert.Equal(2, runResult.TrackedOutputSteps.Count);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CSharpCompilationOptionsTests.cs (2)
235Assert.Equal(3, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithSpecificDiagnosticOptions(warnings).SpecificDiagnosticOptions.Count); 237Assert.Equal(0, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithSpecificDiagnosticOptions(null).SpecificDiagnosticOptions.Count);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (19)
CodeFixes\ExtensionOrderingTests.cs (1)
135Assert.True(codeFixPriorityMap.Count > 0);
Collections\Immutable\Maps\MapTests.cs (17)
45Assert.Equal(5, map.Count); 61Assert.Equal(5, map.Count); 64Assert.Equal(4, map.Count); 67Assert.Equal(4, map.Count); 70Assert.Equal(3, map.Count); 73Assert.Equal(2, map.Count); 76Assert.Equal(1, map.Count); 79Assert.Equal(0, map.Count); 92Assert.Equal(5, map.Count); 98Assert.Equal(5, map.Count); 101Assert.Equal(4, map.Count); 104Assert.Equal(4, map.Count); 107Assert.Equal(3, map.Count); 110Assert.Equal(2, map.Count); 113Assert.Equal(1, map.Count); 116Assert.Equal(1, map.Count); 119Assert.Equal(0, map.Count);
Preview\PreviewWorkspaceTests.cs (1)
171Assert.Equal(1, result.CompilationDiagnostics.Count);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\DiagnosticServiceTests.vb (1)
1428Assert.Equal(1, descriptorsMap.Count)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
DkmUtilities.cs (1)
351$"EE: AppDomain {appDomain.Id}, blocks {context.MetadataBlocks.Length}, contexts {context.AssemblyContexts.Count}" + Environment.NewLine,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
VS\IFSharpWorkspaceProjectContextFactory.cs (1)
137=> _projectReferences.Count;
Microsoft.CodeAnalysis.Features (3)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (1)
89return _analyzerProviders.Count > 0;
src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (2)
36Debug.Assert(binaryToAssignmentMap.Count == assignmentToTokenMap.Count);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Snippets\AbstractSnippetProviderTests.cs (1)
69var placeholderLocationsArray = new ImmutableArray<TextSpan>[placeholderLocations.Count];
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Features\CodeFixes\CodeFixService.cs (1)
379return fixerMap.Count > 0;
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.ProjectStates.cs (3)
133if (newMap.Count == 0) 162if (mapPerReference.Count == 0 || map.Count == 0)
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (3)
424var diagnostics = new FixedSizeArrayBuilder<(string analyzerId, SerializableDiagnosticMap diagnosticMap)>(builderMap.Count); 448if (projectAnalyzers.Length < (analysisResult?.ProjectAnalysisResult?.AnalyzerTelemetryInfo.Count ?? 0) 449|| hostAnalyzers.Length < (analysisResult?.HostAnalysisResult?.AnalyzerTelemetryInfo.Count ?? 0))
Microsoft.CodeAnalysis.UnitTests (2)
Analyzers\AnalyzerConfigTests.cs (2)
1267Assert.Equal(expected[i].Length, treeOptions.Count); 2636Assert.Equal(2, options.AnalyzerOptions.Count);
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\VisualBasicCompilation.vb (1)
966If IsSubmission AndAlso declMap.Count > 1 Then
Scanner\Directives.vb (2)
502Me._symbols.Count > 0 OrElse 505other._symbols.Count > 0 OrElse
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (1)
59Debug.Assert(conditionalSymbolsMap Is Nothing OrElse conditionalSymbolsMap.Count > 0)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (11)
CommandLineTests.vb (11)
8722Assert.Equal(expected:=0, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions.Count) 8742Assert.Equal(expected:=1, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions.Count) 8763Assert.Equal(expected:=1, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions.Count) 8784Assert.Equal(expected:=1, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions.Count) 8805Assert.Equal(expected:=1, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions.Count) 8826Assert.Equal(expected:=1, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions.Count) 8847Assert.Equal(expected:=2, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions.Count) 8869Assert.Equal(expected:=1, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions.Count) 8890Assert.Equal(expected:=1, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions.Count) 8913Assert.Equal(expected:=3, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions.Count) 8936Assert.Equal(expected:=1, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions.Count)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
CompilationContext.vb (1)
111Debug.Assert(displayClassVariableNamesInOrder.Length = _displayClassVariables.Count)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\VisualBasicCompilationOptionsTests.vb (1)
398Assert.Equal(0, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithSpecificDiagnosticOptions(Nothing).SpecificDiagnosticOptions.Count)
Microsoft.CodeAnalysis.Workspaces (19)
CodeFixesAndRefactorings\FixAllLogger.cs (2)
161m[DocumentsWithDiagnosticsToFix] = documentsAndDiagnosticsToFixMap.Count; 171m[ProjectsWithDiagnosticsToFix] = projectsAndDiagnosticsToFixMap.Count;
Diagnostics\DiagnosticAnalysisResult.cs (1)
275if (_syntaxLocals == null || _syntaxLocals.Count == 0)
Diagnostics\DiagnosticAnalysisResultMap.cs (2)
39Debug.Assert(telemetryInfo.IsEmpty || telemetryInfo.Count == analysisResult.Count);
Serialization\AbstractOptionsSerializationService.cs (1)
54writer.WriteInt32(options.SpecificDiagnosticOptions.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (4)
92return _backwardMap.Count == 0; 100Debug.Assert(_forwardMap.Count == _backwardMap.Count); 101return _backwardMap.Count;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (2)
15if (self.Count != other.Count)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
451Contract.ThrowIfFalse(_projectUpdateState.ProjectReferenceInfos.Count == 0); 452Contract.ThrowIfFalse(_projectToMaxSupportedLangVersionMap.Count == 0); 453Contract.ThrowIfFalse(_projectToDependencyNodeTargetIdentifier.Count == 0);
Workspace\Solution\ProjectDependencyGraph.cs (2)
471Debug.Assert(projectIds.Count >= referencesMap.Count); 493Debug.Assert(projectIds.Count >= reverseReferencesMap.Count);
Workspace\Solution\SolutionState.cs (2)
154Contract.ThrowIfFalse(ProjectStates.Count == ProjectIds.Count); 155Contract.ThrowIfFalse(ProjectStates.Count == _dependencyGraph.ProjectIds.Count);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\ImmutableSetWithInsertionOrder`1.cs (1)
28get { return _map.Count; }
Microsoft.Interop.SourceGeneration (3)
ManualTypeMarshallingHelper.cs (2)
31return Modes.Count == other.Modes.Count
ValueEqualityImmutableDictionary.cs (1)
49public int Count => Map.Count;
Microsoft.VisualStudio.LanguageServices.UnitTests (8)
ProjectSystemShim\ConvertedVisualBasicProjectOptionsTests.vb (8)
28Assert.Equal(expected:=0, actual:=convertedOptions.SpecificDiagnosticOptions.Count) 41Assert.Equal(expected:=1, actual:=convertedOptions.SpecificDiagnosticOptions.Count) 55Assert.Equal(expected:=1, actual:=convertedOptions.SpecificDiagnosticOptions.Count) 72Assert.Equal(expected:=1, actual:=convertedOptions.SpecificDiagnosticOptions.Count) 89Assert.Equal(expected:=1, actual:=convertedOptions.SpecificDiagnosticOptions.Count) 106Assert.Equal(expected:=2, actual:=convertedOptions.SpecificDiagnosticOptions.Count) 125Assert.Equal(expected:=3, actual:=convertedOptions.SpecificDiagnosticOptions.Count) 144Assert.Equal(expected:=1, actual:=convertedOptions.SpecificDiagnosticOptions.Count)
MSBuild (1)
CopyOnWriteDictionary.cs (1)
124public int Count => _backing.Count;
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableDictionary_2.cs (3)
144get { return this.Count == 0; } 613Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 753Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));