Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a reorg for .NET Framework 4
Message
From
24/07/2010 13:12:29
 
 
To
24/07/2010 12:35:04
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01473537
Message ID:
01473699
Views:
49
>Actually, you're still needlessly jumping through hoops. Take a look at this:
>
>
>string CRLF = "\r\n";
>string TestString = string.Format("Test this string. {0}It contains {1}a CRLF.{2}QED", CRLF, CRLF, CRLF );
>string[] lines = TestString.Split(CRLF.ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
>
>for (int i = 0; i < lines.Length; i++)
>{
>	Debug.WriteLine(lines[i]);
>}
>
Thanks, this is exactly what I was looking for.

But, I would like to understand the use of .ToCharArray().
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform