语言

DefaultJsonTypeInfoResolver 构造函数

定义

创建可变 DefaultJsonTypeInfoResolver 实例。

public:
 DefaultJsonTypeInfoResolver();
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
[System.Diagnostics.CodeAnalysis.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.")]
public DefaultJsonTypeInfoResolver();
public DefaultJsonTypeInfoResolver();
Public Sub New ()
属性

适用于