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