Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
JsonValueTrimmable.cs
Go to the documentation of this file.
3
5
6internal sealed class JsonValueTrimmable<TValue> : JsonValue<TValue>
7{
9
11
17
23
25 {
26 if (writer == null)
27 {
28 throw new ArgumentNullException("writer");
29 }
30 if (_converter != null)
31 {
32 if (options == null)
33 {
35 }
37 {
39 }
40 else
41 {
43 }
44 }
45 else
46 {
48 }
49 }
50}
static readonly JsonSerializerOptions s_defaultOptions
static void Serialize(Stream utf8Json, object? value, Type inputType, JsonSerializerOptions? options=null)
readonly JsonTypeInfo< TValue > _jsonTypeInfo
JsonValueTrimmable(TValue value, JsonConverter< TValue > converter, JsonNodeOptions? options=null)
readonly JsonConverter< TValue > _converter
JsonValueTrimmable(TValue value, JsonTypeInfo< TValue > jsonTypeInfo, JsonNodeOptions? options=null)
override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions options=null)
virtual void WriteNumberWithCustomHandling(Utf8JsonWriter writer, T value, JsonNumberHandling handling)
void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)