22 references to NamespaceKind
dotnet-svcutil-lib (22)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (19)
277
_nsStack[0].Set("xmlns", XmlReservedNs.NsXmlNs,
NamespaceKind
.Special);
278
_nsStack[1].Set("xml", XmlReservedNs.NsXml,
NamespaceKind
.Special);
281
_nsStack[2].Set(string.Empty, string.Empty,
NamespaceKind
.Implied);
286
_nsStack[2].Set(string.Empty, (defaultNs == null ? string.Empty : defaultNs),
NamespaceKind
.Implied);
1687
NamespaceKind
kind;
1710
if (_nsStack[existingNsIndex].kind ==
NamespaceKind
.Special)
1720
kind =
NamespaceKind
.Implied;
1732
kind = (_nsStack[existingNsIndex].namespaceUri == ns) ?
NamespaceKind
.Implied :
NamespaceKind
.NeedToWrite;
1751
kind = (definedNs == ns) ?
NamespaceKind
.Implied :
NamespaceKind
.NeedToWrite;
1756
kind =
NamespaceKind
.NeedToWrite;
1784
NamespaceKind
existingNsKind = _nsStack[existingNsIndex].kind;
1785
if (existingNsKind ==
NamespaceKind
.Written)
1790
if (_omitDuplNamespaces && existingNsKind !=
NamespaceKind
.NeedToWrite)
1794
_nsStack[existingNsIndex].kind =
NamespaceKind
.Written;
1844
AddNamespace(prefix, ns,
NamespaceKind
.Written);
1849
private void AddNamespace(string prefix, string ns,
NamespaceKind
kind)
2075
if (_nsStack[i].kind ==
NamespaceKind
.NeedToWrite)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriterHelpers.cs (3)
87
internal
NamespaceKind
kind;
90
internal void Set(string prefix, string namespaceUri,
NamespaceKind
kind)
100
Debug.Assert(kind ==
NamespaceKind
.NeedToWrite);