MFEnumJsonConverter Class

Converts MFilesAPI enums to between their standard values and their custom json serialized forms.

Definition

Namespace: MFiles.VAF.Configuration.JsonAdaptor
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public class MFEnumJsonConverter : JsonConverter
Inheritance
Object    JsonConverter    MFEnumJsonConverter

Constructors

MFEnumJsonConverter Constructor.

Properties

CanRead Gets a value indicating whether this JsonConverter can read JSON.
(Inherited from JsonConverter)
CanWrite Gets a value indicating whether this JsonConverter can write JSON.
(Inherited from JsonConverter)

Methods

CanConvert Determines whether this instance can convert the specified object type.
(Overrides JsonConverter.CanConvert(Type))
GetEnumName Returns the serializable name of an enum value.
GetEnumValue Returns the value of an enum by the serializable name.
ReadJson Reads the JSON representation of the object.
(Overrides JsonConverter.ReadJson(JsonReader, Type, Object, JsonSerializer))
WriteJson Writes the JSON representation of the object.
(Overrides JsonConverter.WriteJson(JsonWriter, Object, JsonSerializer))

See Also