This pull request updates the EnumValues member of the Parameter class to return a list of all possible enum values when the ParameterType is either an enum value or an IEnumerable<T> where T is an enum value.
Tests are included for the common case of having an array as well as the less common case of having an arbitrary type that explicitly implements IEnumerable<T>.
Issue #42
This pull request updates the
EnumValues
member of theParameter
class to return a list of all possible enum values when theParameterType
is either an enum value or anIEnumerable<T>
whereT
is an enum value.Tests are included for the common case of having an array as well as the less common case of having an arbitrary type that explicitly implements
IEnumerable<T>
.