internal abstract class MtBaseJsonConverter<T> : JsonConverter<T>
where T : class
| MtBaseJsonConverterT | Initializes a new instance of the MtBaseJsonConverterT class |
| CheckState |
Once the reader is done reading, we check the state of the item, whether it is valid. In most cases this will invoke a method from ModelValidatorsExtensions that returns the boolean result and sets state. |
| GenerateItem | Generates a new item of type T. |
| Read | Reads and converts the JSON to type T. (Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions)) |
| ReadParameter | Reads a parameter from the JSON reader and assigns the value to the property of item. |
| JsonException |
Thrown if the object doesn't start with a StartObject,
ends with an EndObject or contains anything else than pairs of PropertyName
and their values. A property cannot have multiple values. (Note: a collection of objects counts as a single value, namely the collection itself, which starts/end with object or array start- and end tokens.) It can also be thrown if the name of a PropertyName is . |