Convert a string representation of a number to int[] in C# What is the shortest C# statement that will convert a string representation of a number to an int[] that contains each digit?

string number = "1234";
number.Array.ConvertAll(line.ToCharArray(), c =&gt; Int32.Parse(c.ToString()));
number.ToCharArray().Select(i =&gt; Convert.ToInt32(i.ToString())).ToArray();
number.Select(i =&gt; Int32.Parse(i.ToString())).ToArray();
number.Select(i =&gt; i - '0').ToArray();


Can anyone beat my last approach?
28 bytes

You can make your last approach a bit shorter by replacing the '0' by 48. You can also strip all unnecessary spaces and use 1-char variable names (for example, number -> n):

n.Select(i=&gt;i-48).ToArray();