I want to break this line:
string line = "First Name ; string ; firstName";
into the array of their cropped versions:
"First Name" "string" "firstName"
How can I do this all on one line? The following is the error "cannot convert void type":
List<string> parts = line.Split(';').ToList().ForEach(p => p.Trim());
Edward Tanguay Nov 13 '09 at 10:06 2009-11-13 10:06
source share