Click here to Skip to main content
15,867,568 members

Articles by akemper (Tip/Trick: 1)

Tip/Trick: 1

RSS Feed

Average article rating:

No articles have been posted.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.89

Programming Languages
C#
9 Jan 2012   Updated: 9 Jan 2012   Rating: 4.89/5    Votes: 9   Popularity: 4.67
Licence: CPOL    Views: 10,480     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
I've compared your favorite with seven alternatives:static long LinesCount(string s) { long count = 0; int position = 0; while ((position = s.IndexOf('\n', position)) != -1) { count++; position++; // Skip this occurance! } ...

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Technical Lead E.ON
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.