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

◆ AddNamespace()

void System.Xml.XmlWellFormedWriter.AddNamespace ( string prefix,
string ns,
NamespaceKind kind )
inlineprivate

Definition at line 2669 of file XmlWellFormedWriter.cs.

2670 {
2671 int num = ++_nsTop;
2672 if (num == _nsStack.Length)
2673 {
2674 Namespace[] array = new Namespace[num * 2];
2675 Array.Copy(_nsStack, array, num);
2676 _nsStack = array;
2677 }
2678 _nsStack[num].Set(prefix, ns, kind);
2679 if (_useNsHashtable)
2680 {
2682 }
2683 else if (_nsTop == 16)
2684 {
2686 for (int i = 0; i <= _nsTop; i++)
2687 {
2689 }
2690 _useNsHashtable = true;
2691 }
2692 }
Dictionary< string, int > _nsHashtable
void AddToNamespaceHashtable(int namespaceIndex)
void Set(string prefix, string namespaceUri, NamespaceKind kind)

References System.Xml.XmlWellFormedWriter._nsHashtable, System.Xml.XmlWellFormedWriter._nsStack, System.Xml.XmlWellFormedWriter._nsTop, System.Xml.XmlWellFormedWriter._useNsHashtable, System.Xml.XmlWellFormedWriter.AddToNamespaceHashtable(), System.array, System.Array.Copy(), System.prefix, and System.Xml.XmlWellFormedWriter.Namespace.Set().

Referenced by System.Xml.XmlWellFormedWriter.PushNamespaceExplicit(), and System.Xml.XmlWellFormedWriter.PushNamespaceImplicit().