c# string split into lines code example
Example 1: c# separate string by a new line
var result = mystring.Split(new string[] {"\\n"}, StringSplitOptions.None);
Example 2: how to split a string by in c#
char[] separator = new[] { ',' };
var result = aiTranslatedString.Split(separator, StringSplitOptions.RemoveEmptyEntries).ToList();