Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Sign()

void System.Xml.XmlBaseReader.NamespaceManager.Sign ( XmlSigningNodeWriter writer)
inline

Definition at line 743 of file XmlBaseReader.cs.

744 {
745 for (int i = 0; i < _nsCount; i++)
746 {
747 PrefixHandle prefix = _namespaces[i].Prefix;
748 bool flag = false;
749 for (int j = i + 1; j < _nsCount; j++)
750 {
751 if (object.Equals(prefix, _namespaces[j].Prefix))
752 {
753 flag = true;
754 break;
755 }
756 }
757 if (!flag)
758 {
759 int offset;
760 int length;
761 byte[] @string = prefix.GetString(out offset, out length);
762 int offset2;
763 int length2;
765 writer.WriteXmlnsAttribute(@string, offset, length, string2, offset2, length2);
766 }
767 }
768 }
string GetString(XmlNameTable nameTable)

References System.Xml.XmlBaseReader.NamespaceManager._namespaces, System.Xml.XmlBaseReader.NamespaceManager._nsCount, System.Xml.Dictionary, System.Xml.StringHandle.GetString(), System.length, System.length2, System.offset, System.prefix, System.Xml.XmlBaseReader.Namespace.Prefix, System.Xml.XmlBaseReader.Prefix, System.Xml.XmlBaseReader.Namespace.Uri, and System.writer.

Referenced by System.Xml.XmlBaseReader.StartCanonicalization().