4 writes to _namespaces
System.Private.Xml (4)
System\Xml\Serialization\XmlSerializerNamespaces.cs (4)
35_namespaces = new Dictionary<string, XmlQualifiedName>(namespaces.NamespacesInternal); 43_namespaces = new Dictionary<string, XmlQualifiedName>(namespaces.Length); 54_namespaces = new Dictionary<string, XmlQualifiedName>(namespaces.Count); 103private Dictionary<string, XmlQualifiedName> NamespacesInternal => _namespaces ??= new Dictionary<string, XmlQualifiedName>();
17 references to _namespaces
System.Private.Xml (17)
System\Xml\Serialization\XmlSerializerNamespaces.cs (17)
46_namespaces.Add(qname.Name, qname); 57_namespaces.Add(qname.Name, qname); 85if (_namespaces == null || _namespaces.Count == 0) 88XmlQualifiedName[] array = new XmlQualifiedName[_namespaces.Count]; 89_namespaces.Values.CopyTo(array, 0); 98get { return (_namespaces == null) ? 0 : _namespaces.Count; } 109if (_namespaces == null || _namespaces.Count == 0) 112return new ArrayList(_namespaces.Values); 120if (_namespaces == null || _namespaces.Count == 0 || string.IsNullOrEmpty(ns)) 123foreach (var nsPair in _namespaces) 138if (_namespaces == null || _namespaces.Count == 0 || string.IsNullOrEmpty(prefix)) 141if (_namespaces.TryGetValue(prefix, out XmlQualifiedName? qName))