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

◆ PropertyPath()

string System.Text.Json.WriteStack.PropertyPath ( )
inline

Definition at line 222 of file WriteStack.cs.

223 {
224 StringBuilder stringBuilder = new StringBuilder("$");
225 int num = Math.Max(_count, _continuationCount);
226 for (int i = 0; i < num - 1; i++)
227 {
229 }
230 if (_continuationCount == 0)
231 {
233 }
234 return stringBuilder.ToString();
235 static void AppendPropertyName(StringBuilder sb, string propertyName)
236 {
237 if (propertyName != null)
238 {
239 if (propertyName.IndexOfAny(ReadStack.SpecialCharacters) != -1)
240 {
241 sb.Append("['");
242 sb.Append(propertyName);
243 sb.Append("']");
244 }
245 else
246 {
247 sb.Append('.');
248 sb.Append(propertyName);
249 }
250 }
251 }
252 static void AppendStackFrame(StringBuilder sb, ref WriteStackFrame frame)
253 {
254 string text = frame.DeclaredJsonPropertyInfo?.ClrName;
255 if (text == null)
256 {
257 text = frame.JsonPropertyNameAsString;
258 }
260 }
261 }
WriteStackFrame Current
Definition WriteStack.cs:15
WriteStackFrame[] _stack
Definition WriteStack.cs:17

References System.Text.Json.WriteStack._continuationCount, System.Text.Json.WriteStack._count, System.Text.Json.WriteStack._stack, System.Text.StringBuilder.Append(), System.Text.Json.WriteStack.Current, System.Text.Json.Dictionary, System.Math.Max(), System.Text.Json.ReadStack.SpecialCharacters, and System.text.