Share via


InterfaceConverter<T> Class

Definition

Converts an object to and from JSON.

public class InterfaceConverter<T> : Newtonsoft.Json.JsonConverter, Microsoft.Bot.Builder.Dialogs.Declarative.Observers.IObservableConverter, Microsoft.Bot.Builder.Dialogs.Declarative.Observers.IObservableJsonConverter where T : class
type InterfaceConverter<'T (requires 'T : null)> = class
    inherit JsonConverter
    interface IObservableConverter
    interface IObservableJsonConverter
Public Class InterfaceConverter(Of T)
Inherits JsonConverter
Implements IObservableConverter, IObservableJsonConverter

Type Parameters

T

The object type.

Inheritance
Newtonsoft.Json.JsonConverter
InterfaceConverter<T>
Implements

Constructors

InterfaceConverter<T>(ResourceExplorer, SourceContext)

Initializes a new instance of the InterfaceConverter<T> class.

Properties

CanRead

Gets a value indicating whether this InterfaceConverter<T> can read JSON.

Methods

CanConvert(Type)

Determines whether this instance can convert the specified object type.

ReadJson(JsonReader, Type, Object, JsonSerializer)

Reads the JSON representation of the object.

RegisterObserver(IConverterObserver)
Obsolete.

Registers a IConverterObserver to receive notifications on converter events.

RegisterObserver(IJsonLoadObserver)

Registers a IJsonLoadObserver to receive notifications on converter events.

ResolveUnknownObject(JToken)

Performs an action on an unknown object.

WriteJson(JsonWriter, Object, JsonSerializer)

Writes the JSON representation of the object.

Applies to