Click here to Skip to main content
12,357,409 members (72,044 online)
Click here to Skip to main content

Tagged as

Stats

108.9K views
181 downloads
34 bookmarked
Posted

Counting Lines in a String

, 18 Jun 2012 CPOL
It seems like an obvious requirement, but the .NET framework will not count occurrences of a character in a string. It's easy to do, but which way is the quickest?

Revisions


  

Compare Revision Minor Date Status Editor
9 - publicly available No 2-May-13 13:00 Available Deeksha Shenoy
Updates in content. 70 changes had been made.
8 No 18-Jun-12 3:45 Pending OriginalGriff
Fixed formatting of code section (don't know what happened to it there) and Revision history reformatted
7 No 17-Jan-12 15:23 Available OriginalGriff
6 No 17-Jan-12 3:22 Available OriginalGriff
5 No 10-Jan-12 14:57 Available OriginalGriff
4 No 9-Jan-12 16:25 Available Deeksha Shenoy
2 No 9-Jan-12 7:15 Available OriginalGriff
1 No 9-Jan-12 6:50 Available OriginalGriff

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

OriginalGriff
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 18 Jun 2012
Article Copyright 2012 by OriginalGriff
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid