I have an Enum abc(N=0,Y=1,M=2), i want to convert it to CSV so I used string.Join as below
var abc_arr = Enum.GetValues(typeof(abc));
var abc_csv = string.Join("','", abc_arr );
But it does not return N,Y,M but instead returns "System.abc[]" Why?
Well the problem is Enum.GetValues is strongly typed so you have to explicitly set the resulting type