Counting lines in a string





0/5 (0 vote)
How about using the extension method: return s.Count(c => (c == '\n'));
How about using the extension method:
return s.Count(c => (c == '\n'));
0/5 (0 vote)
How about using the extension method: return s.Count(c => (c == '\n'));
return s.Count(c => (c == '\n'));