Table of Contents

Method CreateConverter

Namespace
GuildWars2.Collections
Assembly
GuildWars2.dll

CreateConverter(Type, JsonSerializerOptions)

Create a converter for the provided Type.

public override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options)

Parameters

typeToConvert Type

The Type being converted.

options JsonSerializerOptions

The JsonSerializerOptions being used.

Returns

JsonConverter

An instance of a JsonConverter<T> where T is compatible with typeToConvert. If null is returned, a NotSupportedException will be thrown.