Method WithEnumValues
WithEnumValues(IEnumerable<IGenericEnumEntry>)
Sets the enum values for the field descriptor.
public GenericEnumFieldDescriptorBuilder WithEnumValues(IEnumerable<IGenericEnumEntry> enumEntries)
Parameters
enumEntries
IEnumerable<IGenericEnumEntry>The collection of enum entries to set.
Returns
- GenericEnumFieldDescriptorBuilder
The builder instance.
Exceptions
- ArgumentNullException
Thrown when
enumEntries
isnull
.- NotSupportedException
Thrown when an enum entry type does not match the configured enum type.