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

◆ GeneratePrefix()

string System.Xml.XmlWellFormedWriter.GeneratePrefix ( )
inlineprivate

Definition at line 2907 of file XmlWellFormedWriter.cs.

2908 {
2910 IFormatProvider provider = invariantCulture;
2912 handler.AppendLiteral("p");
2913 handler.AppendFormatted(_nsTop - 2, "d");
2914 string text = string.Create(provider, ref handler);
2915 if (LookupNamespace(text) == null)
2916 {
2917 return text;
2918 }
2919 int num = 0;
2920 string text2;
2921 do
2922 {
2924 IFormatProvider provider2 = invariantCulture;
2926 handler2.AppendFormatted(text);
2927 handler2.AppendFormatted(num);
2928 text2 = string.Create(provider2, ref handler2);
2929 num++;
2930 }
2931 while (LookupNamespace(text2) != null);
2932 return text2;
2933 }
static CultureInfo InvariantCulture

References System.Xml.XmlWellFormedWriter._nsTop, System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(), System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(), System.Xml.Dictionary, System.Globalization.CultureInfo.InvariantCulture, System.Xml.XmlWellFormedWriter.LookupNamespace(), and System.text.

Referenced by System.Xml.XmlWellFormedWriter.WriteQualifiedName(), System.Xml.XmlWellFormedWriter.WriteQualifiedNameAsync(), System.Xml.XmlWellFormedWriter.WriteStartAttribute(), and System.Xml.XmlWellFormedWriter.WriteStartAttributeAsync_NoAdvanceState().