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

◆ WritePropertyName() [12/15]

void System.Text.Json.Utf8JsonWriter.WritePropertyName ( ReadOnlySpan< char > propertyName)
inline

Definition at line 2918 of file Utf8JsonWriter.cs.

2919 {
2920 JsonWriterHelper.ValidateProperty(propertyName);
2921 int num = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder);
2922 if (num != -1)
2923 {
2925 }
2926 else
2927 {
2929 }
2930 _currentDepth &= int.MaxValue;
2931 _tokenType = JsonTokenType.PropertyName;
2932 }
void WriteStringByOptionsPropertyName(ReadOnlySpan< char > propertyName)
void WriteStringEscapeProperty(ReadOnlySpan< char > propertyName, DateTime value, int firstEscapeIndexProp)

References System.Text.Json.Utf8JsonWriter._currentDepth, System.Text.Json.Utf8JsonWriter._options, System.Text.Json.Utf8JsonWriter._tokenType, System.Text.Json.Dictionary, System.Text.Json.JsonWriterOptions.Encoder, System.Text.Json.JsonWriterHelper.NeedsEscaping(), System.Text.Json.JsonWriterHelper.ValidateProperty(), System.Text.Json.Utf8JsonWriter.WriteStringByOptionsPropertyName(), and System.Text.Json.Utf8JsonWriter.WriteStringEscapeProperty().