/// <summary> /// The constructor will setup the property editor based on the attribute if one is found /// </summary> public ParameterEditor() { Configuration = new Dictionary <string, object>(); //assign properties based on the attribute if it is found _attribute = GetType().GetCustomAttribute <ParameterEditorAttribute>(false); if (_attribute != null) { //set the id/name from the attribute Alias = _attribute.Alias; Name = _attribute.Name; } }
/// <summary> /// The constructor will setup the property editor based on the attribute if one is found /// </summary> public ParameterEditor() { Configuration = new Dictionary<string, object>(); //assign properties based on the attribute if it is found _attribute = GetType().GetCustomAttribute<ParameterEditorAttribute>(false); if (_attribute != null) { //set the id/name from the attribute Alias = _attribute.Alias; Name = _attribute.Name; } }