Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

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?
StringLinesSpeedTest.zip
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
Settings.settings

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?
Follow on   Google+

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