I'm trying to create a procedure overload that accepts an array of Enum
values, of any enum type. Take this example:
Overloads Sub DoSomething(ByVal value as Object)
Overloads Sub DoSomething(ByVal value() as System.Enum) ' I know this
doesn't work, but...
In the case of a single object I want to extract its value, and in the case
of an array of enums (any type of Enum) I want to create a joined string
containing all of their numerical values.
Is there a way to differentiate these situations using procedure overloading
as above, or do I need to write code to examine the types more closely
within the first DoSomething overload?
Any ideas are appreciated.
Regards,
Jon