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