Method AddEnumValue
AddEnumValue(IGenericEnumEntry)
Adds a single enum value to the field descriptor.
public GenericEnumFieldDescriptorBuilder AddEnumValue(IGenericEnumEntry enumEntry)
Parameters
enumEntry
IGenericEnumEntryThe enum entry to add.
Returns
- GenericEnumFieldDescriptorBuilder
The builder instance.
Exceptions
- ArgumentNullException
Thrown when
enumEntry
is null.- NotSupportedException
Thrown when the enum entry type does not match the configured enum type.