33 references to Count
Microsoft.Build (29)
BackEnd\Components\Communications\TranslatorExtensions.cs (1)
52
int count = value.
Count
;
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
330
Dictionary<string, string> globalProperties = new(configuration.GlobalProperties.
Count
, StringComparer.OrdinalIgnoreCase);
626
var globalProperties = new Dictionary<string, string>(configuration.GlobalProperties.
Count
, StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\Lookup.cs (1)
404
SecondaryProperties ??= new PropertyDictionary<ProjectPropertyInstance>(PrimaryPropertySets.
Count
);
BackEnd\Shared\ConfigurationMetadata.cs (1)
177
$"{truncatedProjectFile}, #GlobalProps={GlobalProperties.
Count
}";
Collections\PropertyDictionary.cs (3)
139
int ICollection<KeyValuePair<string, T>>.Count =>
Count
;
279
if (
Count
!= other.
Count
)
Definition\Project.cs (3)
2117
return _data.GlobalPropertiesDictionary.
Count
;
2147
if (_data.GlobalPropertiesDictionary.
Count
== 0)
2152
var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.
Count
, MSBuildNameIgnoreCaseComparer.Default);
Definition\ProjectCollection.cs (2)
564
if (_globalProperties.
Count
== 0)
569
dictionary = new Dictionary<string, string>(_globalProperties.
Count
, MSBuildNameIgnoreCaseComparer.Default);
Definition\ProjectItem.cs (3)
277
{ return Link != null ? Link.DirectMetadata.Count : _directMetadata != null ? _directMetadata.
Count
: 0; }
837
List<ProjectMetadata> temporary = new List<ProjectMetadata>(_directMetadata.
Count
);
844
_directMetadata = new PropertyDictionary<ProjectMetadata>(_directMetadata.
Count
);
Definition\ProjectItemDefinition.cs (1)
104
get { return Link != null ? Link.Metadata.Count : (_metadata == null) ? 0 : _metadata.
Count
; }
Definition\Toolset.cs (2)
922
int count = _environmentProperties.
Count
+ reservedProperties.Count + Properties.Values.Count + _globalProperties.
Count
+ 1;
Evaluation\Evaluator.cs (2)
826
List<P> list = new(dictionary.
Count
);
1257
return _data.GlobalPropertiesDictionary.
Count
;
Instance\ProjectInstance.cs (8)
711
_properties = new PropertyDictionary<ProjectPropertyInstance>(that._properties.
Count
);
725
_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(that._globalProperties.
Count
);
733
new PropertyDictionary<ProjectPropertyInstance>(that._environmentVariableProperties.
Count
);
1075
if (_globalProperties == null /* cached */ || _globalProperties.
Count
== 0)
1080
Dictionary<string, string> dictionary = new Dictionary<string, string>(_globalProperties.
Count
, MSBuildNameIgnoreCaseComparer.Default);
2548
Dictionary<string, string> globalProperties = new Dictionary<string, string>(globalPropertiesInstances.
Count
, StringComparer.OrdinalIgnoreCase);
3265
_environmentVariableProperties = new PropertyDictionary<ProjectPropertyInstance>(environmentVariableProperties.
Count
);
3278
_globalProperties = new PropertyDictionary<ProjectPropertyInstance>(globalPropertiesDictionary.
Count
);
Microsoft.Build.Engine.UnitTests (4)
BackEnd\IntrinsicTask_Tests.cs (3)
44
Assert.Equal(2, properties.
Count
);
977
Assert.Equal(2, properties.
Count
);
1152
Assert.Equal(2, properties.
Count
);
Collections\OMcollections_tests.cs (1)
47
Assert.Equal(2, properties.
Count
);