S
shapper
Hello,
I have a generic list as follows:
Dim categories As Generic.List(Of Enumeration.Category)
Category is an enumeration as follows:
Public Enum Category
Book
Document
Paper
End Enum
How can I convert categories to a string array which would become
something as follows:
Book,Document,Paper, ...
I tried:
categories.ToArray
And I get the error:
Value of type '1-dimensional array of Category' cannot be converted to
'1-dimensional array of String'
Thanks,
Miguel
I have a generic list as follows:
Dim categories As Generic.List(Of Enumeration.Category)
Category is an enumeration as follows:
Public Enum Category
Book
Document
Paper
End Enum
How can I convert categories to a string array which would become
something as follows:
Book,Document,Paper, ...
I tried:
categories.ToArray
And I get the error:
Value of type '1-dimensional array of Category' cannot be converted to
'1-dimensional array of String'
Thanks,
Miguel