2 writes to _nameMap
System.Xaml (2)
System\Xaml\NameScope.cs (2)
44
_nameMap
= new HybridDictionary();
111
public void Clear() =>
_nameMap
= null;
18 references to _nameMap
System.Xaml (18)
System\Xaml\NameScope.cs (18)
42
if (
_nameMap
is null)
45
_nameMap
[name] = scopedElement;
49
object nameContext =
_nameMap
[name];
53
_nameMap
[name] = scopedElement;
75
if (
_nameMap
?[name] is null)
80
_nameMap
.Remove(name);
90
if (
_nameMap
is null || string.IsNullOrEmpty(name))
95
return
_nameMap
[name];
101
IEnumerator<KeyValuePair<string, object>> GetEnumerator() => new Enumerator(
_nameMap
);
107
public int Count =>
_nameMap
?.Count ?? 0;
115
if (
_nameMap
is null)
121
foreach (DictionaryEntry entry in
_nameMap
)
222
if (
_nameMap
is null)
227
var list = new List<string>(
_nameMap
.Keys.Count);
228
foreach (string key in
_nameMap
.Keys)
240
if (
_nameMap
is null)
245
var list = new List<object>(
_nameMap
.Values.Count);
246
foreach (object value in
_nameMap
.Values)