Implemented interface member:
30 references to Count
Microsoft.Build (30)
BackEnd\Components\Communications\TranslatorExtensions.cs (1)
51int count = value.Count;
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
391Dictionary<string, string> globalProperties = new(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase); 721var globalProperties = new Dictionary<string, string>(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\Lookup.cs (1)
404SecondaryProperties ??= new PropertyDictionary<ProjectPropertyInstance>(PrimaryPropertySets.Count);
BackEnd\Shared\ConfigurationMetadata.cs (1)
178$"{truncatedProjectFile}, #GlobalProps={GlobalProperties.Count}";
Collections\PropertyDictionary.cs (3)
136int ICollection<KeyValuePair<string, T>>.Count => Count; 284if (Count != other.Count)
Definition\Project.cs (3)
2123return _data.GlobalPropertiesDictionary.Count; 2153if (_data.GlobalPropertiesDictionary.Count == 0) 2158var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default);
Definition\ProjectCollection.cs (2)
597if (_globalProperties.Count == 0) 602dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default);
Definition\ProjectItem.cs (3)
277{ return Link != null ? Link.DirectMetadata.Count : _directMetadata != null ? _directMetadata.Count : 0; } 832List<ProjectMetadata> temporary = new List<ProjectMetadata>(_directMetadata.Count); 839_directMetadata = new PropertyDictionary<ProjectMetadata>(_directMetadata.Count);
Definition\ProjectItemDefinition.cs (1)
104get { return Link != null ? Link.Metadata.Count : (_metadata == null) ? 0 : _metadata.Count; }
Definition\Toolset.cs (2)
820int count = _environmentProperties.Count + reservedProperties.Count + Properties.Values.Count + _globalProperties.Count + 1;
Evaluation\Evaluator.cs (2)
839List<P> list = new(dictionary.Count); 1276return _data.GlobalPropertiesDictionary.Count;
Instance\ProjectInstance.cs (9)
719_sdkResolvedEnvironmentVariableProperties = new PropertyDictionary<ProjectPropertyInstance>(sdkResolvedEnvironmentVariablePropertiesDictionary.Count); 753_properties = new PropertyDictionary<ProjectPropertyInstance>(that._properties.Count); 767_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(that._globalProperties.Count); 775new PropertyDictionary<ProjectPropertyInstance>(that._environmentVariableProperties.Count); 784_sdkResolvedEnvironmentVariableProperties = new(thatEnvProps.Count); 1120if (_globalProperties == null /* cached */ || _globalProperties.Count == 0) 2643Dictionary<string, string> globalProperties = new Dictionary<string, string>(globalPropertiesInstances.Count, StringComparer.OrdinalIgnoreCase); 3371_environmentVariableProperties = new PropertyDictionary<ProjectPropertyInstance>(environmentVariableProperties.Count); 3384_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(globalPropertiesDictionary.Count);