Method GetTypeInfo
GetTypeInfo<T>(JsonSerializerOptions)
Gets the type info for T that the options provide, as GetTypeInfo(Type) does.
Declaration
public static JsonTypeInfo<T> GetTypeInfo<T>(this JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonSerializerOptions | options | The options that provide the type info. |
Returns
| Type | Description |
|---|---|
| JsonTypeInfo<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The type to get the type info for. |
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The options' type info resolvers provide no type info for |