Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
JsonValueNotTrimmable.cs
Go to the documentation of this file.
2
4
5internal sealed class JsonValueNotTrimmable<TValue> : JsonValue<TValue>
6{
7 [RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
10 {
11 }
12
13 [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode", Justification = "The ctor is marked with RequiresUnreferencedCode.")]
15 {
16 if (writer == null)
17 {
18 throw new ArgumentNullException("writer");
19 }
21 }
22}
static void Serialize(Stream utf8Json, object? value, Type inputType, JsonSerializerOptions? options=null)
override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions options=null)
JsonValueNotTrimmable(TValue value, JsonNodeOptions? options=null)