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