using System; using System.Linq; public class Test { public static void Main() { var threeSides = "10,20,30".Split(',').Select(int.Parse).ToArray(); Console.WriteLine("A={0} B={1} C={2}", threeSides[0], threeSides[1], threeSides[2]); } }