NewBieS NewBieS - 1 year ago 79
C# Question

Simplest way to split a string to a char array

Is there simplest way to split the word/sentence into every single char and store into array?

Me and you.

array = { 'M', 'e', ' ', 'a', 'n', 'd', ' ', 'y', 'o', 'u', '.' };

Answer Source

Well, this is pretty simple :

"Me and you".ToCharArray();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download