split string by comma and add to list c# code example Example: c# split a string and return list listStrLineElements = line.Split(',').ToList();