public ComboBoxItemsBuilder WithPropertyEditor(PropertyEditor propertyEditor) { if (!(propertyEditor is IObjectSpaceHolder)) { throw new NotImplementedException(propertyEditor.GetType() + " must implement " + typeof(IObjectSpaceHolder)); } _propertyEditor = propertyEditor; return(this); }
/// <summary> /// Will return the <see cref="SupportTagsAttribute"/> for the given <see cref="PropertyEditor"/> /// </summary> /// <param name="propEd"></param> /// <returns></returns> public static SupportTagsAttribute GetAttribute(PropertyEditor propEd) { if (propEd == null) { return(null); } var tagSupport = propEd.GetType().GetCustomAttribute <SupportTagsAttribute>(false); return(tagSupport); }
public ComboBoxItemsBuilder WithPropertyEditor(PropertyEditor propertyEditor) { if (!(propertyEditor is IObjectSpaceHolder)) throw new NotImplementedException(propertyEditor.GetType() + " must implement " + typeof(IObjectSpaceHolder)); _propertyEditor = propertyEditor; return this; }