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

◆ WriteTo() [1/2]

Definition at line 24 of file JsonValueTrimmable.cs.

25 {
26 if (writer == null)
27 {
28 throw new ArgumentNullException("writer");
29 }
30 if (_converter != null)
31 {
32 if (options == null)
33 {
34 options = JsonSerializerOptions.s_defaultOptions;
35 }
37 {
39 }
40 else
41 {
43 }
44 }
45 else
46 {
47 JsonSerializer.Serialize(writer, _value, _jsonTypeInfo);
48 }
49 }
readonly JsonTypeInfo< TValue > _jsonTypeInfo
readonly JsonConverter< TValue > _converter
virtual void WriteNumberWithCustomHandling(Utf8JsonWriter writer, T value, JsonNumberHandling handling)
void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)

References System.Text.Json.Nodes.JsonValueTrimmable< TValue >._converter, System.Text.Json.Nodes.JsonValueTrimmable< TValue >._jsonTypeInfo, System.Text.Json.Nodes.JsonValue< TValue >._value, System.Text.Json.Serialization.JsonConverter< T >.IsInternalConverterForNumberType, System.options, System.Text.Json.JsonSerializerOptions.s_defaultOptions, System.Text.Json.JsonSerializer.Serialize(), System.Text.Json.Serialization.JsonConverter< T >.Write(), System.Text.Json.Serialization.JsonConverter< T >.WriteNumberWithCustomHandling(), and System.writer.