Skip to content

EnumEditorAttribute constructor (1 of 3)

Initializes a new instance of the EnumEditorAttribute class.

public EnumEditorAttribute()

See Also


EnumEditorAttribute constructor (2 of 3)

Initializes a new instance of the EnumEditorAttribute class for an enum or a StringEnum type by its key, which is needed for a property that is not typed with it, e.g. a string property that holds the values of a StringEnum.

public EnumEditorAttribute(string enumKey)
parameter description
enumKey The key of the enum or string enumeration.

Exceptions

exception condition
ArgumentNullException enumKey is null or empty.

See Also


EnumEditorAttribute constructor (3 of 3)

Initializes a new instance of the EnumEditorAttribute class for a numeric enum or a StringEnum type, which is needed for a property that is not typed with it, e.g. a string property that holds the values of a StringEnum.

public EnumEditorAttribute(Type enumType)
parameter description
enumType The enum or string enumeration type.

Exceptions

exception condition
ArgumentNullException enumType is null.
ArgumentOutOfRangeException enumType is neither an enum nor a string enumeration.

See Also