Search Results for

    Show / Hide Table of Contents

    Class JsonInheritanceConverter

    Inheritance
    object
    JsonConverter
    JsonInheritanceConverter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: System.Dynamic.ExpandoObject
    Syntax
    [GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
    public class JsonInheritanceConverter : JsonConverter

    Constructors

    JsonInheritanceConverter()

    Declaration
    public JsonInheritanceConverter()

    JsonInheritanceConverter(string)

    Declaration
    public JsonInheritanceConverter(string discriminatorName)
    Parameters
    string discriminatorName

    Properties

    CanRead

    Gets a value indicating whether this Newtonsoft.Json.JsonConverter can read JSON.

    Declaration
    public override bool CanRead { get; }
    Property Value
    bool

    true if this Newtonsoft.Json.JsonConverter can read JSON; otherwise, false.

    Overrides
    Newtonsoft.Json.JsonConverter.CanRead

    CanWrite

    Gets a value indicating whether this Newtonsoft.Json.JsonConverter can write JSON.

    Declaration
    public override bool CanWrite { get; }
    Property Value
    bool

    true if this Newtonsoft.Json.JsonConverter can write JSON; otherwise, false.

    Overrides
    Newtonsoft.Json.JsonConverter.CanWrite

    DiscriminatorName

    Declaration
    public string DiscriminatorName { get; }
    Property Value
    string

    Methods

    CanConvert(Type)

    Determines whether this instance can convert the specified object type.

    Declaration
    public override bool CanConvert(Type objectType)
    Parameters
    Type objectType

    Type of the object.

    Returns
    bool

    true if this instance can convert the specified object type; otherwise, false.

    Overrides
    JsonConverter.CanConvert(Type)

    ReadJson(JsonReader, Type, object, JsonSerializer)

    Reads the JSON representation of the object.

    Declaration
    public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
    Parameters
    JsonReader reader

    The Newtonsoft.Json.JsonReader to read from.

    Type objectType

    Type of the object.

    object existingValue

    The existing value of object being read.

    JsonSerializer serializer

    The calling serializer.

    Returns
    object

    The object value.

    Overrides
    JsonConverter.ReadJson(JsonReader, Type, object, JsonSerializer)

    WriteJson(JsonWriter, object, JsonSerializer)

    Writes the JSON representation of the object.

    Declaration
    public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
    Parameters
    JsonWriter writer

    The Newtonsoft.Json.JsonWriter to write to.

    object value

    The value.

    JsonSerializer serializer

    The calling serializer.

    Overrides
    JsonConverter.WriteJson(JsonWriter, object, JsonSerializer)
    Back to top Generated by DocFX