Posts Tagged ‘ string ’

Convert an enum to a List

Sometimes you need a function to convert a enum to a string array.

There is already a class (Enum) which helps us to do so

string[] abc = Enum.GetNames(...);
Advertisements