how to split a string by commas in c# code example Example: c# separate string by comma string[] words = phrase.Split(' ');