Search Results for

    Show / Hide Table of Contents

    Class VariantSystemTextJsonConverter

    System.Text.Json converter that serializes a Variant as a JSON object with Type and Value properties, and reconstructs the typed Variant when reading.

    Inheritance
    object
    JsonConverter
    JsonConverter<Variant>
    VariantSystemTextJsonConverter
    Inherited Members
    JsonConverter<Variant>.CanConvert(Type)
    JsonConverter<Variant>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
    JsonConverter<Variant>.WriteAsPropertyName(Utf8JsonWriter, Variant, JsonSerializerOptions)
    JsonConverter<Variant>.HandleNull
    JsonConverter<Variant>.Type
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Reporting
    Assembly: Reportman.Reporting.dll
    Syntax
    public class VariantSystemTextJsonConverter : JsonConverter<Variant>

    Constructors

    View Source

    VariantSystemTextJsonConverter()

    Declaration
    public VariantSystemTextJsonConverter()

    Methods

    View Source

    Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

    Declaration
    public override Variant Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
    Parameters
    Type Name Description
    Utf8JsonReader reader
    Type typeToConvert
    JsonSerializerOptions options
    Returns
    Type Description
    Variant
    Overrides
    JsonConverter<Variant>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
    View Source

    Write(Utf8JsonWriter, Variant, JsonSerializerOptions)

    Declaration
    public override void Write(Utf8JsonWriter writer, Variant value, JsonSerializerOptions options)
    Parameters
    Type Name Description
    Utf8JsonWriter writer
    Variant value
    JsonSerializerOptions options
    Overrides
    JsonConverter<Variant>.Write(Utf8JsonWriter, Variant, JsonSerializerOptions)
    • View Source
    In this article
    Back to top Generated by DocFX