2 writes to _nameMap
System.Xaml (2)
System\Xaml\NameScope.cs (2)
45
_nameMap
= new HybridDictionary();
112
public void Clear() =>
_nameMap
= null;
18 references to _nameMap
System.Xaml (18)
System\Xaml\NameScope.cs (18)
43
if (
_nameMap
== null)
46
_nameMap
[name] = scopedElement;
50
object nameContext =
_nameMap
[name];
54
_nameMap
[name] = scopedElement;
76
if (
_nameMap
?[name] == null)
81
_nameMap
.Remove(name);
91
if (
_nameMap
== null || string.IsNullOrEmpty(name))
96
return
_nameMap
[name];
102
IEnumerator<KeyValuePair<string, object>> GetEnumerator() => new Enumerator(
_nameMap
);
108
public int Count =>
_nameMap
?.Count ?? 0;
116
if (
_nameMap
== null)
122
foreach (DictionaryEntry entry in
_nameMap
)
223
if (
_nameMap
== null)
228
var list = new List<string>(
_nameMap
.Keys.Count);
229
foreach (string key in
_nameMap
.Keys)
241
if (
_nameMap
== null)
246
var list = new List<object>(
_nameMap
.Values.Count);
247
foreach (object value in
_nameMap
.Values)