12 private Enum value =
null;
13 private Type enumType =
null;
14 private string enumTypeName =
string.Empty;
15 private string enumValue =
string.Empty;
43 if (this.value is
null)
44 this.value = (Enum)Enum.Parse(
this.enumType,
this.enumValue);
51 this.enumType = value.GetType();
52 this.enumTypeName = this.enumType.FullName;
53 this.enumValue = value.ToString();
61 [DefaultValueStringEmpty]
64 get => this.enumTypeName;
68 if (this.enumType is
null)
69 throw new InvalidOperationException(
"Enumeration type not recognized by " + typeof(
Types).Namespace +
": " + value);
71 this.enumTypeName = value;
79 [DefaultValueStringEmpty]
82 get => this.enumValue;
85 this.enumValue = value;
Static class that dynamically manages types and interfaces available in the runtime environment.
static Type GetType(string FullName)
Gets a type, given its full name.
Enumeration setting object.
string EnumValue
Enumeration value
EnumSetting()
Enumeration setting object.
string EnumTypeName
Enumeration type name
EnumSetting(string Key, Enum Value)
Enumeration setting object.
override object GetValueObject()
Gets the value of the setting, as an object.
Base abstract class for settings.