split string conatining commas to array double C# code example Example: c# separate string by comma string[] words = phrase.Split(' ');