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