Aydsko iRacing Data API
Show / Hide Table of Contents

Class DataUrlResultContext

Inheritance
object
JsonSerializerContext
DataUrlResultContext
Implements
IJsonTypeInfoResolver
Inherited Members
JsonSerializerContext.Options
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
JsonSerializerContext.GeneratedSerializerOptions

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.

Overrides
JsonSerializerContext.GetTypeInfo(Type)

Implements

IJsonTypeInfoResolver
In this article
Back to top Generated by DocFX