3 instantiations of MetadataModification
Microsoft.Build (3)
BackEnd\Components\RequestBuilder\Lookup.cs (3)
1227
private static readonly MetadataModification s_keepModification = new
MetadataModification
(ModificationType.Keep);
1232
private static readonly MetadataModification s_removeModification = new
MetadataModification
(ModificationType.Remove);
1271
return new
MetadataModification
(newValue);
21 references to MetadataModification
Microsoft.Build (19)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (3)
314
metadataToSet[metadataName] = Lookup.
MetadataModification
.CreateFromNoChange();
321
metadataToSet[metadataName] = Lookup.
MetadataModification
.CreateFromRemove();
340
metadataToSet[metadataInstance.Name] = Lookup.
MetadataModification
.CreateFromNewValue(evaluatedValue);
BackEnd\Components\RequestBuilder\Lookup.cs (16)
1037
private Dictionary<string,
MetadataModification
> _modifications;
1047
_modifications = new Dictionary<string,
MetadataModification
>(MSBuildNameIgnoreCaseComparer.Default);
1057
_modifications = new Dictionary<string,
MetadataModification
>(other._modifications, MSBuildNameIgnoreCaseComparer.Default);
1107
MetadataModification
existingModification;
1141
_modifications.Add(metadataName,
MetadataModification
.CreateFromNewValue(metadataValue));
1147
public IEnumerable<KeyValuePair<string,
MetadataModification
>> ExplicitModifications
1156
/// <returns>If <see cref="KeepOnlySpecified"/> is true, this will return a modification with <see cref="
MetadataModification
.Remove"/>
1161
public
MetadataModification
this[string metadataName]
1165
MetadataModification
modification;
1171
return
MetadataModification
.CreateFromRemove();
1174
return
MetadataModification
.CreateFromNoChange();
1227
private static readonly
MetadataModification
s_keepModification = new MetadataModification(ModificationType.Keep);
1232
private static readonly
MetadataModification
s_removeModification = new MetadataModification(ModificationType.Remove);
1259
public static
MetadataModification
CreateFromNoChange()
1269
public static
MetadataModification
CreateFromNewValue(string newValue)
1278
public static
MetadataModification
CreateFromRemove()
Microsoft.Build.Engine.UnitTests (2)
BackEnd\Lookup_Tests.cs (2)
629
newMetadata2["m3"] = Lookup.
MetadataModification
.CreateFromNoChange();
678
newMetadata["m1"] = Lookup.
MetadataModification
.CreateFromNoChange();