red-gate / XmlDoc2CmdletDoc

Create cmdlet XML help files from XML doc comments
Other
63 stars 24 forks source link

Display possible values on parameters that take an IEnumerable<T> #50

Closed lordmilko closed 5 years ago

lordmilko commented 5 years ago

Issue #42

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>.

ChrisLambrou commented 5 years ago

Many thanks for this! :)