Skip to main content

StringTypeConverter

A class in Root.Township, Alta.Console.

Write-only JSON converter that writes a Type as its name string.

Constructors​

MemberWhat it is
StringTypeConverter()Creates a StringTypeConverter with default values.

Properties​

MemberWhat it is
override bool CanRead { get; }False: this converter cannot read.

Methods​

MemberWhat it is
override Type ReadJson(JsonReader reader, Type objectType, Type existingValue, bool hasExistingValue, JsonSerializer serializer)Not implemented; throws.
override void WriteJson(JsonWriter writer, Type value, JsonSerializer serializer)Writes the type's name as a string.