Class ExplicitOffsetAttribute

Namespace
Cratis.Arc.Commands
Assembly
Cratis.Arc.Core.dll

Requires a JSON date-time string with an explicit offset or Z, preserving tick precision.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class ExplicitOffsetAttribute : JsonConverterAttribute
Inheritance
ExplicitOffsetAttribute
Inherited Members
Extension Methods

Remarks

DateTimeOffset retains its offset; DateTime is converted to UTC. On a positional record use the property target.

Constructors

ExplicitOffsetAttribute()

public ExplicitOffsetAttribute()

Methods

CreateConverter(Type)

public override JsonConverter CreateConverter(Type typeToConvert)

Parameters

typeToConvert Type

Returns

JsonConverter