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