Class LinkResultContext
Implements
Inherited Members
Namespace: Aydsko.iRacingData.Common
Assembly: Aydsko.iRacingData.dll
Syntax
[JsonSerializable(typeof(LinkResult))]
[JsonSourceGenerationOptions(WriteIndented = true)]
public class LinkResultContext : JsonSerializerContext, IJsonTypeInfoResolver
Constructors
LinkResultContext()
Declaration
public LinkResultContext()
LinkResultContext(JsonSerializerOptions)
Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions.
Declaration
public LinkResultContext(JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
JsonSerializerOptions | options | The run time provided options for the context instance. |
Properties
DateTimeOffset
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<DateTimeOffset> DateTimeOffset { get; }
Property Value
Type | Description |
---|---|
JsonTypeInfo<DateTimeOffset> |
Default
The default JsonSerializerContext associated with a default JsonSerializerOptions instance.
Declaration
public static LinkResultContext Default { get; }
Property Value
Type | Description |
---|---|
LinkResultContext |
GeneratedSerializerOptions
The source-generated options associated with this context.
Declaration
protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }
Property Value
Type | Description |
---|---|
JsonSerializerOptions |
Overrides
LinkResult
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<LinkResult> LinkResult { get; }
Property Value
Type | Description |
---|---|
JsonTypeInfo<LinkResult> |
NullableDateTimeOffset
Defines the source generated JSON serialization contract metadata for a given type.
Declaration
public JsonTypeInfo<DateTimeOffset?> NullableDateTimeOffset { get; }
Property Value
Type | Description |
---|---|
JsonTypeInfo<DateTimeOffset?> |
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. |