Click or drag to resize

JsonConfFlagConverter Class

Serializes / Deserializes a flags based enum type between the flag value and a json object with a boolean property for each flag (true if the flags is set).
Inheritance Hierarchy

Namespace:  MFiles.VAF.Configuration
Assembly:  MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: (
public class JsonConfFlagConverter : JsonConverter

The JsonConfFlagConverter type exposes the following members.

Public methodJsonConfFlagConverter
Initializes a new instance of the JsonConfFlagConverter class
Public propertyCanRead (Inherited from JsonConverter.)
Public propertyCanWrite (Inherited from JsonConverter.)
Public methodCanConvert
Determines if the converted can convert a certain type.
(Overrides JsonConverter.CanConvert(Type).)
Public methodConvertFlagObject(Type, JObject, Int32)
Converts a flag object to a corresponding numeric flags value.
Public methodConvertFlagObjectTFlags(JObject, Int32)
Converts a flag object to a corresponding numeric flags value.
Public methodConvertFlags
Converts a numeric flags value to a corresponding flag object.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetFlagPropertyName
Gets the json property name for a flag.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadJson
Converts various json types to a valid flags type.
(Overrides JsonConverter.ReadJson(JsonReader, Type, Object, JsonSerializer).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteJson
Serializes a flag value to a json value.
(Overrides JsonConverter.WriteJson(JsonWriter, Object, JsonSerializer).)
See Also