public string GetOptionName(string optionId) { PropertyInfo option = ClassHelper.GetProperty(this, optionId); return(option?.GetCustomAttribute <TitleAttribute>()?.Name ?? option?.Name ?? optionId); }
public void SetOption(string name, object value) { ClassHelper.SetPropertyValue(this, name, value); }
public Type GetOptionType(string name) { return(ClassHelper.GetPropertyType(this, name)); }
public object GetOption(string name) { return(ClassHelper.GetPropertyValue(this, name)); }
public void SetOptionDefault(string name) { ClassHelper.SetPropertyValue(this, name, ClassHelper.GetPropertyValue(Default, name)); }