How do you convert an array element that is a string to another array in C#
Posted on 2007-10-15
I'm having a little trouble with arrays in C#
I have an array of strings but some of the elements may need to be converted to arrays.
arr = "some string";
arr = "some pipe | delimited string";
arr = arr.Split( ("|").ToCharArray() );
so this would turn arr into another string array within that array.
Is this possible as i will not always know ahead of time which elements need to be turned into an array?
Thanks for the help!