[%siteTitle%]
Search Results for

    [%custom-skipDocumentationFor%]
    Show / Hide Table of Contents Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Framework SystemLibrary.Common.Framework.Json.dll

    DelegateJsonConverter

    public class DelegateJsonConverter : JsonConverter<object>

    Inheritance
    object
    JsonConverter
    JsonConverter<object>
    DelegateJsonConverter
    Inherited Members
    JsonConverter<object>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
    JsonConverter<object>.WriteAsPropertyName(Utf8JsonWriter, object, JsonSerializerOptions)
    JsonConverter<object>.HandleNull
    JsonConverter<object>.Type
    Examples
    Arguments
    X

    Methods

    Determines whether the specified type can be converted.

    public override bool CanConvert(Type typeToConvert)

    X
    Methods arguments
    Type Name Description
    Type typeToConvert

    The type to compare against.

    X
    Type Description
    bool

    true if the type can be converted; otherwise, false.

    Overrides
    JsonConverter<object>.CanConvert(Type)

    Reads and converts the JSON to type object.

    public override object Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

    X
    Methods arguments
    Type Name Description
    Utf8JsonReader reader

    The reader.

    Type typeToConvert

    The type to convert.

    JsonSerializerOptions options

    An object that specifies serialization options to use.

    X
    Type Description
    object

    The converted value.

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

    Writes a specified value as JSON.

    public override void Write(Utf8JsonWriter writer, object value, JsonSerializerOptions options)

    X
    Methods arguments
    Type Name Description
    Utf8JsonWriter writer

    The writer to write to.

    object value

    The value to convert to JSON.

    JsonSerializerOptions options

    An object that specifies serialization options to use.

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

    Extension Methods

    ObjectExtensions.Json(object, bool)
    ObjectExtensions.Json(object, JsonSerializerOptions, bool, params JsonConverter[])
    ObjectExtensions.Json(object, params JsonConverter[])
    ObjectExtensions.Xml(object)

    }

    In This Article
    Package: nuget
    Source: github
    Website: [%footerSiteTitle%]