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);
103
private 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);
85
if (
_namespaces
== null ||
_namespaces
.Count == 0)
88
XmlQualifiedName[] array = new XmlQualifiedName[
_namespaces
.Count];
89
_namespaces
.Values.CopyTo(array, 0);
98
get { return (
_namespaces
== null) ? 0 :
_namespaces
.Count; }
109
if (
_namespaces
== null ||
_namespaces
.Count == 0)
112
return new ArrayList(
_namespaces
.Values);
120
if (
_namespaces
== null ||
_namespaces
.Count == 0 || string.IsNullOrEmpty(ns))
123
foreach (var nsPair in
_namespaces
)
138
if (
_namespaces
== null ||
_namespaces
.Count == 0 || string.IsNullOrEmpty(prefix))
141
if (
_namespaces
.TryGetValue(prefix, out XmlQualifiedName? qName))