Click here to Skip to main content
13,094,001 members (58,300 online)
Click here to Skip to main content

Tagged as

Stats

4.4K views
Posted 11 Jan 2012

Counting lines in a string

, 11 Jan 2012
How about using the extension method: return s.Count(c => (c == '\n'));

Revisions


  

Compare Revision Minor Date Status Editor
3 - publicly available No 11-Jan-12 3:09 Available Deeksha Shenoy
2 No 11-Jan-12 3:09 Composing Deeksha Shenoy
1 No 10-Jan-12 8:26 Composing George Swan

License

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

Share

About the Author

George Swan
Student
Wales Wales
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170813.1 | Last Updated 11 Jan 2012
Article Copyright 2012 by George Swan
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid