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);
1587
NamespaceKind
kind;
1610
if (_nsStack[existingNsIndex].kind ==
NamespaceKind
.Special)
1620
kind =
NamespaceKind
.Implied;
1632
kind = (_nsStack[existingNsIndex].namespaceUri == ns) ?
NamespaceKind
.Implied :
NamespaceKind
.NeedToWrite;
1651
kind = (definedNs == ns) ?
NamespaceKind
.Implied :
NamespaceKind
.NeedToWrite;
1656
kind =
NamespaceKind
.NeedToWrite;
1684
NamespaceKind
existingNsKind = _nsStack[existingNsIndex].kind;
1685
if (existingNsKind ==
NamespaceKind
.Written)
1690
if (_omitDuplNamespaces && existingNsKind !=
NamespaceKind
.NeedToWrite)
1694
_nsStack[existingNsIndex].kind =
NamespaceKind
.Written;
1744
AddNamespace(prefix, ns,
NamespaceKind
.Written);
1749
private void AddNamespace(string prefix, string ns,
NamespaceKind
kind)
1965
if (_nsStack[i].kind ==
NamespaceKind
.NeedToWrite)
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
1383
if (_nsStack[i].kind ==
NamespaceKind
.NeedToWrite)
System\Xml\Core\XmlWellFormedWriterHelpers.cs (3)
83
internal
NamespaceKind
kind;
86
internal void Set(string prefix, string namespaceUri,
NamespaceKind
kind)
96
Debug.Assert(kind ==
NamespaceKind
.NeedToWrite);
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (1)
31
Debug.Assert(kind ==
NamespaceKind
.NeedToWrite);