109 references to Default
Microsoft.Build (80)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (4)
136
consumedItemReferences ??= new HashSet<string>(MSBuildNameIgnoreCaseComparer.
Default
);
215
var itemListsToBeBatched = new Dictionary<string, ICollection<ProjectItemInstance>>(MSBuildNameIgnoreCaseComparer.
Default
);
238
consumedItemReferenceNames ??= new HashSet<string>(MSBuildNameIgnoreCaseComparer.
Default
);
392
var itemMetadataValues = new Dictionary<string, string>(consumedMetadataReferences.Count, MSBuildNameIgnoreCaseComparer.
Default
);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
671
_addTable = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.
Default
);
BackEnd\Components\RequestBuilder\Lookup.cs (3)
778
PrimaryModifyTable ??= new ItemTypeToItemsMetadataUpdateDictionary(MSBuildNameIgnoreCaseComparer.
Default
);
1047
_modifications = new Dictionary<string, MetadataModification>(MSBuildNameIgnoreCaseComparer.
Default
);
1057
_modifications = new Dictionary<string, MetadataModification>(other._modifications, MSBuildNameIgnoreCaseComparer.
Default
);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
810
targetsChecked ??= new HashSet<string>(MSBuildNameIgnoreCaseComparer.
Default
)
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (4)
415
itemVectorTransformsInTargetInputs = new ItemVectorPartitionCollection(MSBuildNameIgnoreCaseComparer.
Default
);
801
itemVectors = new ItemVectorPartitionCollection(MSBuildNameIgnoreCaseComparer.
Default
);
802
discreteItems = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.
Default
);
844
itemVectorCollection[itemVectorType] = new ItemVectorPartition(MSBuildNameIgnoreCaseComparer.
Default
);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
323
lookupHash ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.
Default
);
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (1)
55
_ => new ConcurrentDictionary<string, Lazy<SdkResult>>(MSBuildNameIgnoreCaseComparer.
Default
));
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (1)
32
private readonly ConcurrentDictionary<string, Lazy<SdkResult>> _responseCache = new ConcurrentDictionary<string, Lazy<SdkResult>>(MSBuildNameIgnoreCaseComparer.
Default
);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
454
Dictionary<string, string> globalProperties = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.
Default
);
BuildCheck\Checks\PreferProjectReferenceCheck.cs (3)
37
private readonly Dictionary<string, (string, string)> _projectsPerReferencePath = new(MSBuildNameIgnoreCaseComparer.
Default
);
38
private readonly Dictionary<string, string> _projectsPerOutputPath = new(MSBuildNameIgnoreCaseComparer.
Default
);
39
private readonly HashSet<string> _projectsSeen = new(MSBuildNameIgnoreCaseComparer.
Default
);
BuildCheck\Checks\PropertiesUsageCheck.cs (7)
121
private Dictionary<string, IMSBuildElementLocation?> _writenProperties = new(MSBuildNameIgnoreCaseComparer.
Default
);
122
private HashSet<string> _readProperties = new(MSBuildNameIgnoreCaseComparer.
Default
);
126
private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsInScope = new(MSBuildNameIgnoreCaseComparer.
Default
);
127
private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsOutOfScope = new(MSBuildNameIgnoreCaseComparer.
Default
);
238
_readProperties = new HashSet<string>(MSBuildNameIgnoreCaseComparer.
Default
);
239
_writenProperties = new Dictionary<string, IMSBuildElementLocation?>(MSBuildNameIgnoreCaseComparer.
Default
);
240
_uninitializedReadsInScope = new Dictionary<string, IMSBuildElementLocation>(MSBuildNameIgnoreCaseComparer.
Default
);
BuildCheck\Checks\SharedOutputPathCheck.cs (4)
36
private readonly Dictionary<string, string> _projectsPerOutputPath = new(MSBuildNameIgnoreCaseComparer.
Default
);
37
private readonly HashSet<string> _projectsSeen = new(MSBuildNameIgnoreCaseComparer.
Default
);
57
!MSBuildNameIgnoreCaseComparer.
Default
.Equals(objPath, binPath)
58
&& !MSBuildNameIgnoreCaseComparer.
Default
.Equals(objPath, absoluteBinPath)
BuildCheck\OM\ParsedItemsCheckData.cs (1)
23
MSBuildNameIgnoreCaseComparer.
Default
.Equals(i.ItemType, itemType));
Collections\CopyOnWritePropertyDictionary.cs (1)
42
private static readonly ImmutableDictionary<string, T> NameComparerDictionaryPrototype = ImmutableDictionary.Create<string, T>(MSBuildNameIgnoreCaseComparer.
Default
);
Collections\ItemDictionary.cs (3)
56
_itemLists = new Dictionary<string, LinkedList<T>>(MSBuildNameIgnoreCaseComparer.
Default
);
67
_itemLists = new Dictionary<string, LinkedList<T>>(initialItemTypesCapacity, MSBuildNameIgnoreCaseComparer.
Default
);
77
_itemLists = new Dictionary<string, LinkedList<T>>(MSBuildNameIgnoreCaseComparer.
Default
);
Collections\PropertyDictionary.cs (3)
53
_properties = new RetrievableValuedEntryHashSet<T>(MSBuildNameIgnoreCaseComparer.
Default
);
61
_properties = new RetrievableValuedEntryHashSet<T>(capacity, MSBuildNameIgnoreCaseComparer.
Default
);
522
var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.
Default
);
Construction\ProjectItemGroupElement.cs (1)
112
if (MSBuildNameIgnoreCaseComparer.
Default
.Equals(itemType, item.ItemType))
Construction\ProjectRootElement.cs (3)
1004
if (itemGroup.Items.Any(item => MSBuildNameIgnoreCaseComparer.
Default
.Equals(itemType, item.ItemType)))
1077
if (MSBuildNameIgnoreCaseComparer.
Default
.Equals(itemType, itemDefinition.ItemType))
1186
if (MSBuildNameIgnoreCaseComparer.
Default
.Equals(property.Name, name))
CopyOnWriteDictionary.cs (1)
37
private static readonly ImmutableDictionary<string, V> NameComparerDictionaryPrototype = ImmutableDictionary.Create<string, V>(MSBuildNameIgnoreCaseComparer.
Default
);
Definition\Project.cs (6)
2152
var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.
Default
);
3067
if (group.Count == 0 || MSBuildNameIgnoreCaseComparer.
Default
.Equals(itemType, group.Items.First().ItemType))
3879
if (!MSBuildNameIgnoreCaseComparer.
Default
.Equals(itemType, existingItemXml.ItemType))
4072
new HashSet<string>(MSBuildNameIgnoreCaseComparer.
Default
));
4268
ConditionedProperties = new Dictionary<string, List<string>>(MSBuildNameIgnoreCaseComparer.
Default
);
4273
ItemDefinitions = new RetrievableEntryHashSet<ProjectItemDefinition>(MSBuildNameIgnoreCaseComparer.
Default
);
Definition\ProjectCollection.cs (1)
569
dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.
Default
);
Definition\ProjectItem.cs (2)
333
RetrievableEntryHashSet<ProjectMetadata> allMetadata = new RetrievableEntryHashSet<ProjectMetadata>(MSBuildNameIgnoreCaseComparer.
Default
);
764
if (itemType == null || MSBuildNameIgnoreCaseComparer.
Default
.Equals(ItemType, itemType))
Evaluation\EvaluatorMetadataTable.cs (1)
99
_metadata = new Dictionary<string, EvaluatorMetadata>(_capacity, MSBuildNameIgnoreCaseComparer.
Default
);
Evaluation\Expander.cs (1)
1558
MSBuildNameIgnoreCaseComparer.
Default
.Equals("MSBuild", propertyName, startIndex, 7);
Evaluation\ExpressionShredder.cs (2)
380
pair.Items ??= new HashSet<string>(MSBuildNameIgnoreCaseComparer.
Default
);
449
pair.Metadata ??= new Dictionary<string, MetadataReference>(MSBuildNameIgnoreCaseComparer.
Default
);
Evaluation\PropertiesUseTracker.cs (2)
68
if (!MSBuildNameIgnoreCaseComparer.
Default
.Equals(CurrentlyEvaluatingPropertyElementName, propertyName, startIndex, endIndex - startIndex + 1))
81
MSBuildNameIgnoreCaseComparer.
Default
.Equals(CurrentlyEvaluatingPropertyElementName, propertyName,
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
306
if (MSBuildNameIgnoreCaseComparer.
Default
.Equals(property.Name, "MSBuildAllProjects"))
Graph\ProjectGraph.cs (1)
662
if (MSBuildNameIgnoreCaseComparer.
Default
.Equals(targetName, baseProjectName))
Instance\ImmutableProjectCollections\ImmutableItemDefinitionsListConverter.cs (1)
146
if (MSBuildNameIgnoreCaseComparer.
Default
.Equals(cachedItem.Key, item.Key))
Instance\ImmutableProjectCollections\ImmutableItemDictionary.cs (1)
207
if (MSBuildNameIgnoreCaseComparer.
Default
.Equals(cachedItem.EvaluatedIncludeEscaped, item.EvaluatedIncludeEscaped))
Instance\ImmutableProjectCollections\ImmutableStringValuedListConverter.cs (1)
78
if (MSBuildNameIgnoreCaseComparer.
Default
.Equals(stringValue, item))
Instance\ProjectInstance.cs (7)
544
_itemDefinitions = new RetrievableEntryHashSet<ProjectItemDefinitionInstance>(projectToInheritFrom._itemDefinitions, MSBuildNameIgnoreCaseComparer.
Default
);
1080
Dictionary<string, string> dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.
Default
);
1354
_globalPropertiesToTreatAsLocal = new HashSet<string>(MSBuildNameIgnoreCaseComparer.
Default
);
2427
capacity => new RetrievableEntryHashSet<ProjectItemDefinitionInstance>(capacity, MSBuildNameIgnoreCaseComparer.
Default
));
2461
capacity => new RetrievableEntryHashSet<ProjectTargetInstance>(capacity, MSBuildNameIgnoreCaseComparer.
Default
));
3100
_itemDefinitions = new RetrievableEntryHashSet<ProjectItemDefinitionInstance>(MSBuildNameIgnoreCaseComparer.
Default
);
3434
_itemDefinitions = new RetrievableEntryHashSet<ProjectItemDefinitionInstance>(itemDefinitions.Count, MSBuildNameIgnoreCaseComparer.
Default
);
Instance\ProjectItemInstance.cs (5)
1497
Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(metadata.Count, MSBuildNameIgnoreCaseComparer.
Default
);
1514
Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.
Default
);
1618
if (!MSBuildNameIgnoreCaseComparer.
Default
.Equals(thisAsITaskItem2.EvaluatedIncludeEscaped, otherAsITaskItem2.EvaluatedIncludeEscaped))
1629
var thisNames = new HashSet<string>(capacity, MSBuildNameIgnoreCaseComparer.
Default
);
2288
if ((requiredItemType == null) || MSBuildNameIgnoreCaseComparer.
Default
.Equals(_itemType, requiredItemType))
Resources\Constants.cs (1)
67
private static readonly HashSet<string> ReservedProperties = new HashSet<string>(MSBuildNameIgnoreCaseComparer.
Default
)
ToolsetElement.cs (1)
346
private Dictionary<string, string> _previouslySeenPropertyNames = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.
Default
);
Utilities\Utilities.cs (2)
472
var envPropertiesHashSet = new RetrievableValuedEntryHashSet<ProjectPropertyInstance>(environmentVariablesBag.Count + 2, MSBuildNameIgnoreCaseComparer.
Default
);
812
if (itemValue != null && (itemTypeNameToFetch == null || MSBuildNameIgnoreCaseComparer.
Default
.Equals(itemType, itemTypeNameToFetch)))
Microsoft.Build.Engine.UnitTests (29)
Collections\MSBuildNameIgnoreCaseComparer_Tests.cs (29)
26
Assert.True(MSBuildNameIgnoreCaseComparer.
Default
.Equals("FOO", "foo"));
27
Assert.False(MSBuildNameIgnoreCaseComparer.
Default
.Equals("FOO", " FOO"));
28
Assert.False(MSBuildNameIgnoreCaseComparer.
Default
.Equals("FOOA", "FOOB"));
29
Assert.False(MSBuildNameIgnoreCaseComparer.
Default
.Equals("AFOO", "BFOO"));
30
Assert.False(MSBuildNameIgnoreCaseComparer.
Default
.Equals("FOO", "FOO "));
31
Assert.False(MSBuildNameIgnoreCaseComparer.
Default
.Equals("a", "b"));
32
Assert.True(MSBuildNameIgnoreCaseComparer.
Default
.Equals("", ""));
33
Assert.False(MSBuildNameIgnoreCaseComparer.
Default
.Equals("x", null));
34
Assert.False(MSBuildNameIgnoreCaseComparer.
Default
.Equals(null, "x"));
35
Assert.True(MSBuildNameIgnoreCaseComparer.
Default
.Equals((string)null, (string)null));
44
MSBuildNameIgnoreCaseComparer comparer = MSBuildNameIgnoreCaseComparer.
Default
;
56
Assert.Equal(MSBuildNameIgnoreCaseComparer.
Default
.GetHashCode("foo"), comparer.GetHashCode(s, 2, 3));
65
Assert.False(MSBuildNameIgnoreCaseComparer.
Default
.Equals("x", null));
74
Assert.False(MSBuildNameIgnoreCaseComparer.
Default
.Equals(null, "x"));
85
MSBuildNameIgnoreCaseComparer.
Default
.Equals("x", "y", -1, 0);
96
MSBuildNameIgnoreCaseComparer.
Default
.Equals("x", "y", 0, -1);
107
MSBuildNameIgnoreCaseComparer.
Default
.Equals("x", "y", 0, 2);
116
Assert.True(MSBuildNameIgnoreCaseComparer.
Default
.Equals("bbb", "abbbaaa", 1, 3));
125
Assert.True(MSBuildNameIgnoreCaseComparer.
Default
.Equals("A", "babbbb", 1, 1));
134
Assert.True(MSBuildNameIgnoreCaseComparer.
Default
.Equals("b", "aabaa", 2, 1));
143
Assert.True(MSBuildNameIgnoreCaseComparer.
Default
.Equals("a", "ab", 0, 1));
152
Assert.True(MSBuildNameIgnoreCaseComparer.
Default
.Equals("aab", "aabaa", 0, 3));
161
Assert.True(0 == MSBuildNameIgnoreCaseComparer.
Default
.GetHashCode((string)null));
163
MSBuildNameIgnoreCaseComparer.
Default
.GetHashCode(""); // doesn't throw
164
Assert.Equal(MSBuildNameIgnoreCaseComparer.
Default
.GetHashCode("aBc"), MSBuildNameIgnoreCaseComparer.
Default
.GetHashCode("AbC"));
173
MSBuildNameIgnoreCaseComparer comparer = MSBuildNameIgnoreCaseComparer.
Default
;
188
MSBuildNameIgnoreCaseComparer comparer = MSBuildNameIgnoreCaseComparer.
Default
;
199
MSBuildNameIgnoreCaseComparer comparer = MSBuildNameIgnoreCaseComparer.
Default
;