Click here to Skip to main content
13,201,452 members (71,388 online)
Click here to Skip to main content

Tagged as

Stats

117.8K views
208 downloads
34 bookmarked
Posted 9 Jan 2012

Counting Lines in a String

, 18 Jun 2012
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?
StringLinesSpeedTest
StringLinesSpeedTest
obj
x86
Debug
DesignTimeResolveAssemblyReferencesInput.cache
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
ResGen.read.1.tlog
ResGen.write.1.tlog
ResolveAssemblyReference.cache
StringLinesSpeedTest.exe
StringLinesSpeedTest.Form1.resources
StringLinesSpeedTest.pdb
StringLinesSpeedTest.Properties.Resources.resources
TempPE
Properties.Resources.Designer.cs.dll
Properties

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

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...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171020.1 | Last Updated 18 Jun 2012
Article Copyright 2012 by OriginalGriff
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid