4 writes to _properties
Microsoft.Build (4)
Collections\PropertyDictionary.cs (4)
53
_properties
= new RetrievableValuedEntryHashSet<T>(MSBuildNameIgnoreCaseComparer.Default);
61
_properties
= new RetrievableValuedEntryHashSet<T>(capacity, MSBuildNameIgnoreCaseComparer.Default);
81
_properties
= new RetrievableValuedEntryHashSet<T>(comparer);
102
_properties
= propertiesHashSet;
32 references to _properties
Microsoft.Build (32)
Collections\PropertyDictionary.cs (32)
128
lock (
_properties
)
130
return
_properties
.Values;
154
lock (
_properties
)
156
return ((ICollection<T>)
_properties
).Count;
192
lock (
_properties
)
194
_properties
.TryGetValue(name, out projectProperty);
213
return new CopyOnReadEnumerable<T, TResult>(this,
_properties
, selector);
230
lock (
_properties
)
232
((ICollection<T>)
_properties
).Clear();
242
lock (
_properties
)
244
return
_properties
.Values.GetEnumerator();
253
lock (
_properties
)
255
return ((IEnumerable)
_properties
.Values).GetEnumerator();
284
lock (
_properties
)
316
lock (
_properties
)
318
return
_properties
.Get(name, startIndex, endIndex - startIndex + 1);
336
if (
_properties
.TryGetEscapedValue(propertyName, out string escapedValue) && escapedValue != null)
364
lock (
_properties
)
366
return
_properties
.ContainsKey(key);
413
lock (
_properties
)
415
if (
_properties
.TryGetValue(item.Key, out T value))
452
return ((IEnumerable<KeyValuePair<string, T>>)
_properties
).GetEnumerator();
465
lock (
_properties
)
467
bool result =
_properties
.Remove(name);
481
lock (
_properties
)
483
_properties
[projectProperty.Key] = projectProperty;
520
lock (
_properties
)
522
var dictionary = new Dictionary<string, string>(((ICollection<T>)
_properties
).Count, MSBuildNameIgnoreCaseComparer.Default);
535
lock (
_properties
)
537
foreach (var kvp in (ICollection<T>)
_properties
)
555
lock (
_properties
)
557
foreach (T property in (ICollection<T>)
_properties
)