19 instantiations of CopyOnWritePropertyDictionary
Microsoft.Build (17)
Collections\CopyOnWritePropertyDictionary.cs (1)
367return new CopyOnWritePropertyDictionary<T>(this);
Instance\ProjectInstance.cs (2)
3342directMetadata = new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 3400directMetadata = new CopyOnWritePropertyDictionary<ProjectMetadataInstance>();
Instance\ProjectItemDefinitionInstance.cs (3)
61var copyOnWriteMetadataDictionary = new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 199_metadata ??= new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 241return new CopyOnWritePropertyDictionary<ProjectMetadataInstance>();
Instance\ProjectItemInstance.cs (11)
128metadata = new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 606CopyOnWritePropertyDictionary<ProjectMetadataInstance> metadata = new(); 1084_directMetadata ??= new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 1142return (_directMetadata == null) ? new CopyOnWritePropertyDictionary<ProjectMetadataInstance>() : _directMetadata.DeepClone(); // copy on write! 1145CopyOnWritePropertyDictionary<ProjectMetadataInstance> allMetadata = new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 1550(capacity) => new CopyOnWritePropertyDictionary<ProjectMetadataInstance>()); 1796_directMetadata = new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 1860_directMetadata ??= new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 1882_directMetadata ??= new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 1891_directMetadata ??= new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 2062CopyOnWritePropertyDictionary<ProjectMetadataInstance> metadata = new CopyOnWritePropertyDictionary<ProjectMetadataInstance>();
Microsoft.Build.Engine.UnitTests (2)
Collections\CopyOnWritePropertyDictionary_Tests.cs (1)
191CopyOnWritePropertyDictionary<MockValue> dic = new CopyOnWritePropertyDictionary<MockValue>();
Instance\TaskItem_Tests.cs (1)
224CopyOnWritePropertyDictionary<ProjectMetadataInstance> directMetadata = new();
30 references to CopyOnWritePropertyDictionary
Microsoft.Build (10)
Collections\CopyOnWritePropertyDictionary.cs (4)
39internal sealed class CopyOnWritePropertyDictionary<T> : ICopyOnWritePropertyDictionary<T>, IEquatable<CopyOnWritePropertyDictionary<T>> 60private CopyOnWritePropertyDictionary(CopyOnWritePropertyDictionary<T> that) 155public bool Equals(CopyOnWritePropertyDictionary<T> other) 211if (other is CopyOnWritePropertyDictionary<T> otherCopyOnWritePropertyDictionary)
Instance\ProjectInstance.cs (1)
3339CopyOnWritePropertyDictionary<ProjectMetadataInstance> directMetadata = null;
Instance\ProjectItemDefinitionInstance.cs (1)
61var copyOnWriteMetadataDictionary = new CopyOnWritePropertyDictionary<ProjectMetadataInstance>();
Instance\ProjectItemInstance.cs (4)
124CopyOnWritePropertyDictionary<ProjectMetadataInstance> metadata = null; 606CopyOnWritePropertyDictionary<ProjectMetadataInstance> metadata = new(); 1145CopyOnWritePropertyDictionary<ProjectMetadataInstance> allMetadata = new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 2062CopyOnWritePropertyDictionary<ProjectMetadataInstance> metadata = new CopyOnWritePropertyDictionary<ProjectMetadataInstance>();
Microsoft.Build.Engine.UnitTests (20)
Collections\CopyOnWritePropertyDictionary_Tests.cs (19)
21var dic = CreateInstance(); 45var dic = CreateInstance(); 73var dic = CreateInstance(); 95var dic = CreateInstance("a", "b", "c"); 107var dic = CreateInstance(); 121var dic1 = CreateInstance("a", "b", "c"); 122var dic2 = CreateInstance("a", "b", "c"); 123var dic3 = CreateInstance("c", "b", "a"); // reversed order 124var dic4 = CreateInstance("a", "b"); // missing item 125var dic5 = CreateInstance("a", "b", "c", "d"); // extra item 134static void Test(CopyOnWritePropertyDictionary<MockValue> a, CopyOnWritePropertyDictionary<MockValue> b, bool expected) 154var dic = CreateInstance("a", "b", "c"); 169var dic = CreateInstance(); 182CopyOnWritePropertyDictionary<MockValue> source = CreateInstance("a", "b", "c"); 183CopyOnWritePropertyDictionary<MockValue> clone = (CopyOnWritePropertyDictionary<MockValue>)source.DeepClone(); 189private static CopyOnWritePropertyDictionary<MockValue> CreateInstance(params string[] values) 191CopyOnWritePropertyDictionary<MockValue> dic = new CopyOnWritePropertyDictionary<MockValue>();
Instance\TaskItem_Tests.cs (1)
224CopyOnWritePropertyDictionary<ProjectMetadataInstance> directMetadata = new();