Condividi tramite


JsonValueReaderWriter.CreateFromType(Type) Metodo

Definizione

Crea un'istanza JsonValueReaderWriter<TValue> del tipo specificato, utilizzando la proprietà per ottenere l'istanza Instance singleton, se possibile.

public static Microsoft.EntityFrameworkCore.Storage.Json.JsonValueReaderWriter? CreateFromType (Type? readerWriterType);
static member CreateFromType : Type -> Microsoft.EntityFrameworkCore.Storage.Json.JsonValueReaderWriter
Public Shared Function CreateFromType (readerWriterType As Type) As JsonValueReaderWriter

Parametri

readerWriterType
Type

Tipo che deve ereditare da JsonValueReaderWriter<TValue>.

Restituisce

Istanza reader/writer./

Eccezioni

se il tipo non rappresenta un oggetto di cui è possibile creare un'istanza JsonValueReaderWriter<TValue> .

Si applica a