12 private Enum value =
null;
13 private Type enumType =
null;
14 private string enumTypeName =
string.Empty;
15 private string enumValue =
string.Empty;
44 if (this.value is
null)
45 this.value = (Enum)Enum.Parse(
this.enumType,
this.enumValue);
52 this.enumType = value.GetType();
53 this.enumTypeName = this.enumType.FullName;
54 this.enumValue = value.ToString();
62 [DefaultValueStringEmpty]
65 get => this.enumTypeName;
69 if (this.enumType is
null)
70 throw new InvalidOperationException(
"Enumeration type not recognized by " + typeof(
Types).Namespace +
": " + value);
72 this.enumTypeName = value;
80 [DefaultValueStringEmpty]
83 get => this.enumValue;
86 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 user setting object.
EnumUserSetting(string User, string Key, Enum Value)
Enumeration user setting object.
EnumUserSetting()
Enumeration user setting object.
string EnumTypeName
Enumeration type name
override object GetValueObject()
Gets the value of the setting, as an object.
string EnumValue
Enumeration value
Base abstract class for user settings.