Forums

String.splitLines

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

String.splitLines

Postby Charles » Tue Jul 14, 2009 12:00 am

I discovered that Python has a .splitLines method on String which I think is quite convenient as there are multiple line ending conventions. Via this method, you don't have to think about them as much because it works with any of them.

I added an extension method on System.String along with unit test cases. I also updated the StandardLibraryExtensionMethods wiki page with this and some other String conveniences that were already in place.
Charles
 
Posts: 2510
Location: Los Angeles, CA

Return to Discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron