Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ Serialize() [3/6]

static void System.Text.Json.JsonSerializer.Serialize ( Stream utf8Json,
object? value,
Type inputType,
JsonSerializerContext context )
inlinestatic

Definition at line 1734 of file JsonSerializer.cs.

1735 {
1736 if (utf8Json == null)
1737 {
1738 throw new ArgumentNullException("utf8Json");
1739 }
1740 if (context == null)
1741 {
1742 throw new ArgumentNullException("context");
1743 }
1746 }
static Type GetRuntimeTypeAndValidateInputType(object value, Type inputType)
static JsonTypeInfo GetTypeInfo(JsonSerializerOptions options, Type runtimeType)

References System.Text.Json.Dictionary, System.Text.Json.JsonSerializer.GetRuntimeTypeAndValidateInputType(), System.Text.Json.JsonSerializer.GetTypeInfo(), and System.value.