Class DataUrlResultContext
Implements
Inherited Members
Namespace: Aydsko.iRacingData.Common
Assembly: Aydsko.iRacingData.dll
Syntax
[JsonSerializable(typeof(DataUrlResult))]
[JsonSourceGenerationOptions(WriteIndented = true)]
public class DataUrlResultContext : JsonSerializerContext, IJsonTypeInfoResolver
Constructors
DataUrlResultContext()
Declaration
public DataUrlResultContext()
DataUrlResultContext(JsonSerializerOptions)
Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions.
Declaration
public DataUrlResultContext(JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
JsonSerializerOptions | options | The run time provided options for the context instance. |
Properties
Boolean
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<bool> Boolean { get; }
Property Value
Type | Description |
---|---|
JsonTypeInfo<bool> |
DataUrlResult
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<DataUrlResult> DataUrlResult { get; }
Property Value
Type | Description |
---|---|
JsonTypeInfo<DataUrlResult> |
DataUrlResultData
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<DataUrlResultData> DataUrlResultData { get; }
Property Value
Type | Description |
---|---|
JsonTypeInfo<DataUrlResultData> |
Default
The default JsonSerializerContext associated with a default JsonSerializerOptions instance.
Declaration
public static DataUrlResultContext Default { get; }
Property Value
Type | Description |
---|---|
DataUrlResultContext |
GeneratedSerializerOptions
The source-generated options associated with this context.
Declaration
protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }
Property Value
Type | Description |
---|---|
JsonSerializerOptions |
Overrides
Int32
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<int> Int32 { get; }
Property Value
Type | Description |
---|---|
JsonTypeInfo<int> |
String
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<string> String { get; }
Property Value
Type | Description |
---|---|
JsonTypeInfo<string> |
Methods
GetTypeInfo(Type)
Gets metadata for the specified type.
Declaration
public override JsonTypeInfo? GetTypeInfo(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type to fetch metadata for. |
Returns
Type | Description |
---|---|
JsonTypeInfo | The metadata for the specified type, or null if the context has no metadata for the type. |