10 implementations of Key
Microsoft.Build (10)
Definition\ProjectItem.cs (1)
308
string IKeyed.
Key
Definition\ProjectItemDefinition.cs (1)
111
string IKeyed.
Key
Definition\ProjectMetadata.cs (1)
241
string IKeyed.
Key
Definition\ProjectProperty.cs (1)
229
string IKeyed.
Key
Instance\ProjectItemDefinitionInstance.cs (1)
133
string IKeyed.
Key
Instance\ProjectItemInstance.cs (2)
276
string IKeyed.
Key
1037
string Microsoft.Build.Collections.IKeyed.
Key
Instance\ProjectMetadataInstance.cs (1)
131
string IKeyed.
Key
Instance\ProjectPropertyInstance.cs (1)
134
string IKeyed.
Key
=> Name;
Instance\ProjectTargetInstance.cs (1)
442
string IKeyed.
Key
56 references to Key
Microsoft.Build (56)
Collections\CopyOnWritePropertyDictionary.cs (8)
106
Assumed.Equal(name, value.
Key
, StringComparison.OrdinalIgnoreCase, "Key must match value's key");
187
if (!thatBacking.TryGetValue(thisProp.
Key
, out T thatProp) ||
237
if (!otherDict.TryGetValue(thisProp.
Key
, out T thatProp) ||
257
Assumed.Equal(key, value.
Key
, "Key must match value's key");
307
Assumed.Equal(item.Key, item.Value.
Key
, "Key must match value's key");
345
_backing = _backing.SetItem(projectProperty.
Key
, projectProperty);
361
builder[kvp.Value.
Key
] = kvp.Value;
369
builder[property.
Key
] = property;
Collections\ItemDictionary.cs (5)
273
if (!_itemLists.TryGetValue(projectItem.
Key
, out List<T> list))
289
_itemLists.Remove(projectItem.
Key
);
338
Assumed.Equal(itemType, list[i].
Key
, StringComparison.OrdinalIgnoreCase, "Item type mismatch");
385
if (!_itemLists.TryGetValue(projectItem.
Key
, out List<T> list))
388
_itemLists[projectItem.
Key
] = list;
Collections\PropertyDictionary.cs (10)
202
Assumed.Equal(name, value.
Key
, StringComparison.OrdinalIgnoreCase, "Key must match value's key");
293
T rightProp = other[leftProp.
Key
];
363
Assumed.Equal(key, value.
Key
, "Key must match value's key");
445
Assumed.Equal(item.Key, item.Value.
Key
, "Key must match value's key");
457
return ((IDictionary<string, T>)this).TryGetValue(item.
Key
, out T existingItem) &&
471
bool ICollection<T>.Remove(T item) => Remove(item.
Key
);
520
_properties[projectProperty.
Key
] = projectProperty;
546
Remove(property.
Key
);
563
dictionary[property.
Key
] = property.EscapedValue;
583
yield return new(kvp.
Key
, EscapingUtilities.UnescapeAll(kvp.EscapedValue));
Collections\RetrievableEntryHashSet\IRetrievableUnescapedValuedEntryHashSet.cs (2)
16
/// Gets the unescaped value of the item whose <see cref="IKeyed.
Key
"/> matches <paramref name="key"/>.
20
/// <returns>True if an item whose <see cref="IKeyed.
Key
"/> matches <paramref name="key"/> was found. False otherwise.</returns>
Collections\RetrievableEntryHashSet\IRetrievableValuedEntryHashSet.cs (2)
24
/// Gets the <see cref="IValued.EscapedValue"/> of the item whose <see cref="IKeyed.
Key
"/> matches <paramref name="key"/>.
28
/// <returns>True if an item whose <see cref="IKeyed.
Key
"/> matches <paramref name="key"/> was found. False otherwise.</returns>
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (17)
209
keys[i] = item.
Key
;
235
Debug.Assert(String.Equals(name, value.
Key
, StringComparison.Ordinal));
284
Debug.Assert(String.Equals(entry.Key, entry.Value.
Key
, StringComparison.Ordinal));
285
return Get(entry.Value.
Key
) != null;
306
return Get(item.
Key
) != null;
368
if (_slots[i].hashCode == hashCode && _constrainedComparer != null ? _constrainedComparer.Equals(_slots[i].value.
Key
, item, index, length) : _comparer.Equals(_slots[i].value.
Key
, item))
393
return Remove(item.
Key
);
398
Debug.Assert(String.Equals(entry.Key, entry.Value.
Key
, StringComparison.Ordinal));
421
if (_slots[i].hashCode == hashCode && _comparer.Equals(_slots[i].value.
Key
, item))
493
yield return new KeyValuePair<string, T>(entry.
Key
, entry);
594
if (key != item.
Key
)
604
Debug.Assert(String.Equals(entry.Key, entry.Value.
Key
, StringComparison.Ordinal));
643
array[i] = new KeyValuePair<string, T>(entry.
Key
, entry);
821
string key = value.
Key
;
826
if (_slots[i].hashCode == hashCode && _comparer.Equals(_slots[i].value.
Key
, key))
880
if (!TryGetValue(element.
Key
, out ours) || !Object.ReferenceEquals(element, ours))
Collections\RetrievableEntryHashSet\RetrievableValuedEntryHashSet.cs (2)
23
/// <param name="comparer">A comparer with which the items' <see cref="IKeyed.
Key
"/> key values are compared.</param>
33
/// <param name="comparer">A comparer with which the items' <see cref="IKeyed.
Key
"/> key values are compared.</param>
Evaluation\Evaluator.cs (1)
862
var pluginSettings = item.Metadata.ToDictionary(m => m.
Key
, m => m.EscapedValue);
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (2)
115
return $"{OperationItem.
Key
} : {OperationItem.EvaluatedInclude}; CapturedItems: {referencedItemsString}";
149
if (itemType?.Equals(_operationItem.
Key
, StringComparison.OrdinalIgnoreCase) != false)
Evaluation\LazyItemEvaluator.UpdateOperation.cs (1)
136
capturedItemsFromReferencedItemTypes[referencedItem.Item.
Key
] = referencedItem.Item;
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (3)
55
public bool Contains(T item) => _projectElements.ContainsKey(item.
Key
);
136
return _projectElements.ContainsKey(item.
Key
);
174
array[index] = new KeyValuePair<string, T>(itemInstance.
Key
, itemInstance);
Instance\ImmutableProjectCollections\ImmutableItemDefinitionsListConverter.cs (2)
143
if (MSBuildNameIgnoreCaseComparer.Default.Equals(cachedItem.
Key
, item.
Key
))
Utilities\Utilities.cs (1)
895
itemType = iitem.
Key
;