24 references to NamespaceKind
System.Xml (24)
System\Xml\Core\XmlWellFormedWriter.cs (19)
272
nsStack[0].Set("xmlns", XmlReservedNs.NsXmlNs,
NamespaceKind
.Special);
273
nsStack[1].Set("xml", XmlReservedNs.NsXml,
NamespaceKind
.Special);
275
nsStack[2].Set(string.Empty, string.Empty,
NamespaceKind
.Implied);
279
nsStack[2].Set(string.Empty, (defaultNs == null ? string.Empty : defaultNs),
NamespaceKind
.Implied);
1390
NamespaceKind
kind;
1409
if (nsStack[existingNsIndex].kind ==
NamespaceKind
.Special) {
1415
kind =
NamespaceKind
.Implied;
1425
kind = (nsStack[existingNsIndex].namespaceUri == ns) ?
NamespaceKind
.Implied :
NamespaceKind
.NeedToWrite;
1441
kind = (definedNs == ns) ?
NamespaceKind
.Implied :
NamespaceKind
.NeedToWrite;
1445
kind =
NamespaceKind
.NeedToWrite;
1469
NamespaceKind
existingNsKind = nsStack[existingNsIndex].kind;
1470
if (existingNsKind ==
NamespaceKind
.Written) {
1474
if (omitDuplNamespaces && existingNsKind !=
NamespaceKind
.NeedToWrite) {
1477
nsStack[existingNsIndex].kind =
NamespaceKind
.Written;
1517
AddNamespace(prefix, ns,
NamespaceKind
.Written);
1522
private void AddNamespace(string prefix, string ns,
NamespaceKind
kind) {
1718
if (nsStack[i].kind ==
NamespaceKind
.NeedToWrite) {
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
1162
if (nsStack[i].kind ==
NamespaceKind
.NeedToWrite) {
System\Xml\Core\XmlWellFormedWriterHelpers.cs (3)
78
internal
NamespaceKind
kind;
81
internal void Set(string prefix, string namespaceUri,
NamespaceKind
kind) {
89
Debug.Assert(kind ==
NamespaceKind
.NeedToWrite);
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (1)
27
Debug.Assert(kind ==
NamespaceKind
.NeedToWrite);