Definition at line 410 of file XmlBaseWriter.cs.
411 {
413 {
414 if ((!(
prefix ==
"xml") || !(uri ==
"http://www.w3.org/XML/1998/namespace")) && (!(
prefix ==
"xmlns") || !(uri ==
"http://www.w3.org/2000/xmlns/")))
415 {
417 }
418 return;
419 }
421 for (
int num =
_nsCount - 1; num >= 0; num--)
422 {
424 if (@
namespace.Depth !=
_depth)
425 {
426 break;
427 }
428 if (@
namespace.Prefix ==
prefix)
429 {
430 if (@namespace.Uri == uri)
431 {
432 return;
433 }
435 }
436 }
437 if (
prefix.Length != 0 && uri.Length == 0)
438 {
440 }
441 if (uri.Length == "http://www.w3.org/2000/xmlns/".Length && uri == "http://www.w3.org/2000/xmlns/")
442 {
444 }
445 if (uri.Length == "http://www.w3.org/XML/1998/namespace".Length && uri[18] == 'X' && uri == "http://www.w3.org/XML/1998/namespace")
446 {
448 }
450 {
454 }
456 if (@namespace == null)
457 {
459 _namespaces[_nsCount] = @namespace;
460 }
467 }
static Exception ThrowHelperError(Exception e)
static string XmlSpecificBindingNamespace
static string XmlEmptyNamespaceRequiresNullPrefix
static string Format(string resourceFormat, object p1)
static string XmlReservedPrefix
static string XmlPrefixBoundToNamespace
References System.Xml.XmlBaseWriter.NamespaceManager._depth, System.Xml.XmlBaseWriter.NamespaceManager._lastNameSpace, System.Xml.XmlBaseWriter.NamespaceManager._namespaces, System.Xml.XmlBaseWriter.NamespaceManager._nsCount, System.Xml.ArgumentException, System.array, System.Array.Copy(), System.Xml.Dictionary, System.SR.Format(), System.prefix, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.SR.XmlEmptyNamespaceRequiresNullPrefix, System.SR.XmlPrefixBoundToNamespace, System.SR.XmlReservedPrefix, and System.SR.XmlSpecificBindingNamespace.