4 writes to _properties
Microsoft.Build (4)
Collections\PropertyDictionary.cs (4)
52
_properties
= new RetrievableEntryHashSet<T>(MSBuildNameIgnoreCaseComparer.Default);
60
_properties
= new RetrievableEntryHashSet<T>(capacity, MSBuildNameIgnoreCaseComparer.Default);
80
_properties
= new RetrievableEntryHashSet<T>(comparer);
101
_properties
= propertiesHashSet;
31 references to _properties
Microsoft.Build (31)
Collections\PropertyDictionary.cs (31)
127
lock (
_properties
)
129
return
_properties
.Values;
153
lock (
_properties
)
155
return ((ICollection<T>)
_properties
).Count;
191
lock (
_properties
)
193
_properties
.TryGetValue(name, out projectProperty);
212
return new CopyOnReadEnumerable<T, TResult>(this,
_properties
, selector);
229
lock (
_properties
)
231
((ICollection<T>)
_properties
).Clear();
241
lock (
_properties
)
243
return
_properties
.Values.GetEnumerator();
252
lock (
_properties
)
254
return ((IEnumerable)
_properties
.Values).GetEnumerator();
283
lock (
_properties
)
315
lock (
_properties
)
317
return
_properties
.Get(name, startIndex, endIndex - startIndex + 1);
345
lock (
_properties
)
347
return
_properties
.ContainsKey(key);
394
lock (
_properties
)
396
if (
_properties
.TryGetValue(item.Key, out T value))
433
return ((IEnumerable<KeyValuePair<string, T>>)
_properties
).GetEnumerator();
446
lock (
_properties
)
448
bool result =
_properties
.Remove(name);
462
lock (
_properties
)
464
_properties
[projectProperty.Key] = projectProperty;
501
lock (
_properties
)
503
var dictionary = new Dictionary<string, string>(((ICollection<T>)
_properties
).Count, MSBuildNameIgnoreCaseComparer.Default);
516
lock (
_properties
)
518
foreach (var kvp in (ICollection<T>)
_properties
)
528
lock (
_properties
)
530
foreach (T property in (ICollection<T>)
_properties
)