VisioForge (c) 2025

Search Results for

    Class JsonInterfaceConverter<T>

    Class JsonInterfaceConverter. Implements the JsonConverter<T>.

    Inheritance
    object
    JsonConverter
    JsonConverter<T>
    JsonInterfaceConverter<T>
    Inherited Members
    JsonConverter<T>.CanConvert(Type)
    JsonConverter<T>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
    JsonConverter<T>.WriteAsPropertyName(Utf8JsonWriter, T, JsonSerializerOptions)
    JsonConverter<T>.HandleNull
    JsonConverter<T>.Type
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: VisioForge.Core.Types.Helpers
    Assembly: VisioForge.Core.dll
    Syntax
    public class JsonInterfaceConverter<T> : JsonConverter<T> where T : class
    Type Parameters
    Name Description
    T

    T.

    Methods

    Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

    Reads and converts the JSON to type T.

    Declaration
    public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
    Parameters
    Type Name Description
    Utf8JsonReader reader

    The reader.

    Type typeToConvert

    The type to convert.

    JsonSerializerOptions options

    An object that specifies serialization options to use.

    Returns
    Type Description
    T

    The converted value.

    Overrides
    JsonConverter<T>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

    Write(Utf8JsonWriter, T, JsonSerializerOptions)

    Writes a specified value as JSON.

    Declaration
    public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
    Parameters
    Type Name Description
    Utf8JsonWriter writer

    The writer to write to.

    T value

    The value to convert to JSON.

    JsonSerializerOptions options

    An object that specifies serialization options to use.

    Overrides
    JsonConverter<T>.Write(Utf8JsonWriter, T, JsonSerializerOptions)

    See Also

    JsonConverter<T>