Search Results for

    Show / Hide Table of Contents

    Class PolymorphicRequestConverter<TKey, T>

    Inheritance
    object
    JsonConverter
    JsonConverter<T>
    RequestConverter<T>
    PolymorphicRequestConverter<TKey, T>
    Inherited Members
    RequestConverter<T>.CanWrite
    RequestConverter<T>.CanRead
    RequestConverter<T>.ReadJson(JsonReader, Type, T, bool, JsonSerializer)
    RequestConverter<T>.WriteJson(JsonWriter, T, JsonSerializer)
    JsonConverter<T>.WriteJson(JsonWriter, object, JsonSerializer)
    JsonConverter<T>.ReadJson(JsonReader, Type, object, JsonSerializer)
    JsonConverter<T>.CanConvert(Type)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO.Json
    Assembly: Glitch9.IO.dll
    Syntax
    public abstract class PolymorphicRequestConverter<TKey, T> : RequestConverter<T> where T : class
    Type Parameters
    Name Description
    TKey
    T

    Methods

    | Edit this page View Source

    GetJsonWriter(TKey)

    Declaration
    public static IPolymorphicRequestWriter<T> GetJsonWriter(TKey key)
    Parameters
    Type Name Description
    TKey key
    Returns
    Type Description
    IPolymorphicRequestWriter<T>
    | Edit this page View Source

    RegisterWriter(TKey, IPolymorphicRequestWriter<T>)

    Declaration
    public static void RegisterWriter(TKey key, IPolymorphicRequestWriter<T> writer)
    Parameters
    Type Name Description
    TKey key
    IPolymorphicRequestWriter<T> writer
    | Edit this page View Source

    ToJson(JsonWriter, T, JsonSerializer)

    Declaration
    protected override void ToJson(JsonWriter writer, T value, JsonSerializer serializer)
    Parameters
    Type Name Description
    JsonWriter writer
    T value
    JsonSerializer serializer
    Overrides
    RequestConverter<T>.ToJson(JsonWriter, T, JsonSerializer)

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation