Search Results for

    Show / Hide Table of Contents

    Class CustomToolFormatConverter

    Polymorphic converter for CustomToolFormat.

    Inheritance
    object
    JsonConverter
    CustomToolFormatConverter
    Inherited Members
    JsonConverter.CanRead
    JsonConverter.CanWrite
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class CustomToolFormatConverter : JsonConverter

    Methods

    | Edit this page View Source

    CanConvert(Type)

    Determines whether this instance can convert the specified object type.

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

    Type of the object.

    Returns
    Type Description
    bool

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

    Overrides
    JsonConverter.CanConvert(Type)
    | Edit this page View Source

    ReadJson(JsonReader, Type, object, JsonSerializer)

    Reads the JSON representation of the object.

    Declaration
    public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer s)
    Parameters
    Type Name Description
    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 s
    Returns
    Type Description
    object

    The object value.

    Overrides
    JsonConverter.ReadJson(JsonReader, Type, object, JsonSerializer)
    | Edit this page View Source

    WriteJson(JsonWriter, object, JsonSerializer)

    Writes the JSON representation of the object.

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

    The Newtonsoft.Json.JsonWriter to write to.

    object value

    The value.

    JsonSerializer serializer

    The calling serializer.

    Overrides
    JsonConverter.WriteJson(JsonWriter, object, 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