JsonConfFlagConverterConvertFlagObject(Type, JObject, Int32) Method

Converts a flag object to a corresponding numeric flags value.

Definition

Namespace: MFiles.VAF.Configuration
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public int ConvertFlagObject(
	Type flagType,
	JObject flagObj,
	int initialValue = 0
)

Parameters

flagType  Type
The flags (enum) type.
flagObj  JObject
The flag object to convert.
initialValue  Int32  (Optional)
The initial value of the flags. Indicates default flag settings to use if no explicit flag value is set in the object.

Return Value

Int32
Corresponding flags value.

See Also