Exemplo n.º 1
0
        public string GetOptionName(string optionId)
        {
            PropertyInfo option = ClassHelper.GetProperty(this, optionId);

            return(option?.GetCustomAttribute <TitleAttribute>()?.Name ?? option?.Name ?? optionId);
        }
Exemplo n.º 2
0
 public void SetOption(string name, object value)
 {
     ClassHelper.SetPropertyValue(this, name, value);
 }
Exemplo n.º 3
0
 public Type GetOptionType(string name)
 {
     return(ClassHelper.GetPropertyType(this, name));
 }
Exemplo n.º 4
0
 public object GetOption(string name)
 {
     return(ClassHelper.GetPropertyValue(this, name));
 }
Exemplo n.º 5
0
 public void SetOptionDefault(string name)
 {
     ClassHelper.SetPropertyValue(this, name, ClassHelper.GetPropertyValue(Default, name));
 }