Implemented interface members:
118 references to Count
Aspire.Dashboard (1)
Model\TelemetryExportService.cs (1)
762Properties = resource.Properties.Count > 0
GenerateDocumentationAndConfigFiles (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (4)
92return _backwardMap.Count == 0; 100Debug.Assert(_forwardMap.Count == _backwardMap.Count); 101return _backwardMap.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (2)
15if (self.Count != other.Count)
Microsoft.Build (14)
Collections\CopyOnWritePropertyDictionary.cs (4)
83public int Count => _backing.Count; 181if (thisBacking.Count != thatBacking.Count) 231if (thisBacking.Count != otherDict.Count)
Graph\ProjectInterpretation.cs (3)
325if (newProperties.Count == 0) 361return Properties.Count == 0 && AdditionalProperties.Count == 0 && UndefineProperties.Count == 0;
Instance\ProjectItemDefinitionInstance.cs (1)
120get { return (_metadata == null) ? 0 : _metadata.Count; }
Instance\ProjectItemInstance.cs (6)
977List<string> names = new List<string>(capacity: metadataCollection.Count + ItemSpecModifiers.All.Length); 1639Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(metadata.Count, MSBuildNameIgnoreCaseComparer.Default); 1790if (otherMetadata.Count != thisNames.Count) 1910int count = temp.Count; 1974if (metadata.Count == 0) 2313if (metadata.Count > 0)
Microsoft.Build.Framework (1)
Collections\CopyOnWriteDictionary.cs (1)
119public int Count => _backing.Count;
Microsoft.Build.Utilities.Core (5)
TaskItem.cs (5)
220int count = (_metadata?.Count ?? 0) + ItemSpecModifiers.All.Length; 242public int MetadataCount => (_metadata?.Count ?? 0) + ItemSpecModifiers.All.Length; 252bool IMetadataContainer.HasCustomMetadata => _metadata?.Count > 0; 363else if (destinationMetadata.Count < _metadata.Count)
Microsoft.CodeAnalysis (11)
CommandLine\CommonCompiler.cs (2)
1035if (options.Count > 0) 1050if (options.Count > 0)
CommandLine\SarifErrorLogger.cs (2)
93if (diagnostic.WarningLevel > 0 || diagnostic.Properties.Count > 0) 102if (diagnostic.Properties.Count > 0)
DiagnosticAnalyzer\AnalysisResult.cs (4)
98if (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.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (4)
92return _backwardMap.Count == 0; 100Debug.Assert(_forwardMap.Count == _backwardMap.Count); 101return _backwardMap.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (2)
15if (self.Count != other.Count)
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (4)
92return _backwardMap.Count == 0; 100Debug.Assert(_forwardMap.Count == _backwardMap.Count); 101return _backwardMap.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (2)
15if (self.Count != other.Count)
Microsoft.CodeAnalysis.CodeStyle (8)
src\roslyn\src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (2)
36Debug.Assert(binaryToAssignmentMap.Count == assignmentToTokenMap.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (4)
92return _backwardMap.Count == 0; 100Debug.Assert(_forwardMap.Count == _backwardMap.Count); 101return _backwardMap.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (2)
15if (self.Count != other.Count)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (2)
94if (state.ParameterToNewFieldMap.Count > 0) 103if (state.ParameterToNewPropertyMap.Count > 0)
Microsoft.CodeAnalysis.CSharp (8)
Binder\DecisionDagBuilder.cs (1)
1300if (existingState.RemainingValues.Count != newRemainingValues.Count ||
Binder\ImportChain.cs (1)
98var aliases = ArrayBuilder<string>.GetInstance(aliasSymbols.Count);
BoundTree\UnboundLambda.cs (1)
1310switch (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\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
76if (diagnostic.Properties.Count > 0)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
76if (diagnostic.Properties.Count > 0)
Microsoft.CodeAnalysis.Features (7)
Diagnostics\Service\DiagnosticAnalyzerService.ProjectStates.cs (1)
60if (analyzersPerReference.Count == 0)
Extensions\ExtensionFolder.cs (1)
148return (_assemblyFilePathToHandlers.Count == 0, lazyHandlers);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (1)
89return _analyzerProviders.Count > 0;
src\roslyn\src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (2)
36Debug.Assert(binaryToAssignmentMap.Count == assignmentToTokenMap.Count);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (2)
94if (state.ParameterToNewFieldMap.Count > 0) 103if (state.ParameterToNewPropertyMap.Count > 0)
Microsoft.CodeAnalysis.ResxSourceGenerator (7)
AbstractResxGenerator.cs (1)
355return obj?.Count ?? 0;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (4)
92return _backwardMap.Count == 0; 100Debug.Assert(_forwardMap.Count == _backwardMap.Count); 101return _backwardMap.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (2)
15if (self.Count != other.Count)
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\VisualBasicCompilation.vb (1)
968If 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.Workspaces (17)
CodeFixesAndRefactorings\FixAllLogger.cs (2)
160m[DocumentsWithDiagnosticsToFix] = documentsAndDiagnosticsToFixMap.Count; 170m[ProjectsWithDiagnosticsToFix] = projectsAndDiagnosticsToFixMap.Count;
Diagnostics\DiagnosticAnalysisResultMap.cs (2)
39Debug.Assert(telemetryInfo.IsEmpty || telemetryInfo.Count == analysisResult.Count);
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.ExtensionMethodInfo.cs (1)
50writer.WriteInt32(ReceiverTypeNameToExtensionMemberMap.Count);
Serialization\AbstractOptionsSerializationService.cs (1)
54writer.WriteInt32(options.SpecificDiagnosticOptions.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (4)
92return _backwardMap.Count == 0; 100Debug.Assert(_forwardMap.Count == _backwardMap.Count); 101return _backwardMap.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (2)
15if (self.Count != other.Count)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
462Contract.ThrowIfFalse(_projectUpdateState.ProjectReferenceInfos.Count == 0); 463Contract.ThrowIfFalse(_projectToMaxSupportedLangVersionMap.Count == 0); 464Contract.ThrowIfFalse(_projectToDependencyNodeTargetIdentifier.Count == 0);
Workspace\Solution\ProjectDependencyGraph.cs (2)
494Debug.Assert(projectIds.Count >= referencesMap.Count); 516Debug.Assert(projectIds.Count >= reverseReferencesMap.Count);
Microsoft.DotNet.ProjectTools (1)
LaunchSettings\LaunchProfileParser.cs (1)
20if (values.Count == 0)
Microsoft.Interop.SourceGeneration (3)
ManualTypeMarshallingHelper.cs (2)
31return Modes.Count == other.Modes.Count
ValueEqualityImmutableDictionary.cs (1)
49public int Count => Map.Count;
Roslyn.Diagnostics.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (4)
92return _backwardMap.Count == 0; 100Debug.Assert(_forwardMap.Count == _backwardMap.Count); 101return _backwardMap.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (2)
15if (self.Count != other.Count)
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableDictionary_2.cs (3)
146get { return this.Count == 0; } 620Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 760Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));