Is there a way to create a shorter alias for an EditorAttribute? Instead of:
[EditorAttribute(typeof<ColorPickerDialogPropertyValueEditor>, typeof<DialogPropertyValueEditor>)]
public Color4 Color { get; set; }
I would like to write:
using ColorPicker = EditorAttribute(typeof<ColorPickerDialogPropertyValueEditor>, typeof<DialogPropertyValueEditor>)
[ColorPicker]
public Color4 Color { get; set; }
Unfortunately the EditorAttribute class is sealed so I cannot inherit it.
I see only one way:
…
Or maybe the
AttributeProviderwill help you (dont know how)