Int32[] numbers = textbox1.Text.Split(',').Select(s => Int32.Parse(s)).ToArray();
to get the first element, use the following code:
Int32[] numbers = textbox1.Text.Split(',').Select(s => Int32.Parse(s)).ToArray();
Int32 firstNumber = numbers.First();
source
share