GeekArticles
Microsoft
C#
Microsoft
C#Counting lines in a string
compared your favorite with seven alternatives:static long LinesCount(string s) { long count = 0; int position = 0; while ((position = position)) != -1) { count++; position++; Skip this occurance! } ...
Sponsored Links
Read Next: Silverlight File Manager
Related Topics
