Answers for "c# convert item to array"

C#
1

convert string to array c#

string myString = "foobar";
char[] myCharArray = myString.ToCharArray();

/* Example of myCharArray
{'f', 'o', 'o', 'b', 'a', 'r'}
*/
Posted by: Guest on October-29-2020
0

c# convert enumb to int array

int[] result = enumArray.Cast<int>().ToArray();
Posted by: Guest on September-11-2020

Code answers related to "c# convert item to array"

C# Answers by Framework

Browse Popular Code Answers by Language