Språk

JsonSignedEnumReaderWriter<TEnum> Class

Definition

Reads and writes JSON for enum values backed by a signed integer.

public sealed class JsonSignedEnumReaderWriter<TEnum> : Microsoft.EntityFrameworkCore.Storage.Json.JsonValueReaderWriter<TEnum> where TEnum : struct
[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public sealed class JsonSignedEnumReaderWriter<TEnum> : Microsoft.EntityFrameworkCore.Storage.Json.JsonValueReaderWriter<TEnum>
type JsonSignedEnumReaderWriter<'Enum (requires 'Enum : struct)> = class
    inherit JsonValueReaderWriter<'Enum (requires 'Enum : struct)>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type JsonSignedEnumReaderWriter<'Enum> = class
    inherit JsonValueReaderWriter<'Enum>
Public NotInheritable Class JsonSignedEnumReaderWriter(Of TEnum)
Inherits JsonValueReaderWriter(Of TEnum)

Type Parameters

TEnum
Inheritance
JsonSignedEnumReaderWriter<TEnum>
Attributes

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.

(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

Name Description
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>)
ToJsonObjectString(String, Object)

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

(Inherited from JsonValueReaderWriter)
ToJsonString(Object)

Writes the value to a JSON string.

(Inherited from JsonValueReaderWriter)
ToJsonTyped(Utf8JsonWriter, TEnum)

Writes the value to JSON.

Applies to