Table of Contents

Class LinkableConverter

Namespace
ActivityPub.Types.Conversion.Converters
Assembly
ActivityPub.Types.dll

Converts types that can be either ASLink or some other type.

public class LinkableConverter : JsonConverterFactory
Inheritance
LinkableConverter
Inherited Members

Methods

CanConvert(Type)

When overridden in a derived class, determines whether the converter instance can convert the specified object type.

public override bool CanConvert(Type type)

Parameters

type Type

Returns

bool

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

CreateConverter(Type, JsonSerializerOptions)

Creates a converter for a specified type.

public override JsonConverter CreateConverter(Type type, JsonSerializerOptions options)

Parameters

type Type
options JsonSerializerOptions

The serialization options to use.

Returns

JsonConverter

A converter for which T is compatible with typeToConvert.