我想能够分割字符串作为分隔符',',只修剪所产生的拆分两侧的空白。例如:分割字符串与修剪空白C#
string str = "The, quick brown, fox";
string[] splitsWithTrim = str.split(',', also trim whitespace somehow?);
foreach (string s in splitsWithTrim)
Console.WriteLine(s);
//output wanted:
//The
//quick brown
//fox