24 references to NamespaceKind
System.Private.Xml (24)
System\Xml\Core\XmlWellFormedWriter.cs (19)
263_nsStack[0].Set("xmlns", XmlReservedNs.NsXmlNs, NamespaceKind.Special); 264_nsStack[1].Set("xml", XmlReservedNs.NsXml, NamespaceKind.Special); 267_nsStack[2].Set(string.Empty, string.Empty, NamespaceKind.Implied); 272_nsStack[2].Set(string.Empty, defaultNs ?? string.Empty, NamespaceKind.Implied); 1587NamespaceKind kind; 1610if (_nsStack[existingNsIndex].kind == NamespaceKind.Special) 1620kind = NamespaceKind.Implied; 1632kind = (_nsStack[existingNsIndex].namespaceUri == ns) ? NamespaceKind.Implied : NamespaceKind.NeedToWrite; 1651kind = (definedNs == ns) ? NamespaceKind.Implied : NamespaceKind.NeedToWrite; 1656kind = NamespaceKind.NeedToWrite; 1684NamespaceKind existingNsKind = _nsStack[existingNsIndex].kind; 1685if (existingNsKind == NamespaceKind.Written) 1690if (_omitDuplNamespaces && existingNsKind != NamespaceKind.NeedToWrite) 1694_nsStack[existingNsIndex].kind = NamespaceKind.Written; 1744AddNamespace(prefix, ns, NamespaceKind.Written); 1749private void AddNamespace(string prefix, string ns, NamespaceKind kind) 1965if (_nsStack[i].kind == NamespaceKind.NeedToWrite)
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
1383if (_nsStack[i].kind == NamespaceKind.NeedToWrite)
System\Xml\Core\XmlWellFormedWriterHelpers.cs (3)
83internal NamespaceKind kind; 86internal void Set(string prefix, string namespaceUri, NamespaceKind kind) 96Debug.Assert(kind == NamespaceKind.NeedToWrite);
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (1)
31Debug.Assert(kind == NamespaceKind.NeedToWrite);