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
CreateConverter(Type, JsonSerializerOptions)
Creates a converter for a specified type.
public override JsonConverter CreateConverter(Type type, JsonSerializerOptions options)
Parameters
type
Typeoptions
JsonSerializerOptionsThe serialization options to use.
Returns
- JsonConverter
A converter for which
T
is compatible withtypeToConvert
.