Compartilhar via


JsonTimeSpanReaderWriter Class

Definition

Reads and writes JSON for TimeSpan values.

public sealed class JsonTimeSpanReaderWriter : Microsoft.EntityFrameworkCore.Storage.Json.JsonValueReaderWriter<TimeSpan>
type JsonTimeSpanReaderWriter = class
    inherit JsonValueReaderWriter<TimeSpan>
Public NotInheritable Class JsonTimeSpanReaderWriter
Inherits JsonValueReaderWriter(Of TimeSpan)
Inheritance

Properties

ConstructorExpression

The expression representing construction of this object.

ConstructorExpression

The expression representing construction of this object.

(Inherited from JsonValueReaderWriter)
Instance

The singleton instance of this stateless reader/writer.

ValueType

The type of the value being read/written.

(Inherited from JsonValueReaderWriter<TValue>)

Methods

FromJson(Utf8JsonReaderManager, Object)

Reads the value from a UTF8 JSON stream or buffer.

(Inherited from JsonValueReaderWriter<TValue>)
FromJsonString(String, Object)

Reads the value from JSON in a string.

(Inherited from JsonValueReaderWriter)
FromJsonTyped(Utf8JsonReaderManager, Object)

Reads the value from JSON.

ToJson(Utf8JsonWriter, Object)

Writes the value to JSON.

(Inherited from JsonValueReaderWriter<TValue>)
ToJsonString(Object)

Writes the value to a JSON string.

(Inherited from JsonValueReaderWriter)
ToJsonTyped(Utf8JsonWriter, TimeSpan)

Writes the value to JSON.

ToJsonTyped(Utf8JsonWriter, TValue)

Writes the value to JSON.

(Inherited from JsonValueReaderWriter<TValue>)

Applies to