Idioma

JsonValueReaderWriter Class

Definition

Reads and writes the JSON value for a given model or provider value.

[System.Runtime.CompilerServices.Nullable(0)]
public abstract class JsonValueReaderWriter
[<System.Runtime.CompilerServices.Nullable(0)>]
type JsonValueReaderWriter = class
Public MustInherit Class JsonValueReaderWriter
Inheritance
JsonValueReaderWriter
Derived
Attributes

Remarks

Implementations of this type must inherit from the generic JsonValueReaderWriter<TValue>

Properties

Name Description
ConstructorExpression

The expression representing construction of this object.

HandlesNullWrites

If true, then the nulls will be passed to the writer's ToJson(Utf8JsonWriter, Object) method. Otherwise null values will always be written as null.

ValueType

The type of the value being read/written.

Methods

Name Description
CreateFromType(Type)

Creates a JsonValueReaderWriter<TValue> instance of the given type, using the Instance property to get th singleton instance if possible.

FromJson(Utf8JsonReaderManager, Object)

Reads the value from a UTF8 JSON stream or buffer.

FromJsonString(String, Object)

Reads the value from JSON in a string.

ToJson(Utf8JsonWriter, Object)

Writes the value to JSON.

ToJsonObjectString(String, Object)

Returns a string containg a JSON object whith the specified property and value.

ToJsonString(Object)

Writes the value to a JSON string.

Applies to