String.Split using C#
by
Thamilselvanj
on
Nov 14, 2010
Category:
String Operations
|
Views:
287
|
Points:
25
|
Silver ★
|
|
|
class Program { static void Main(string[] args) { string strTestString = "Sample-C#.Net-string-handling-code"; char[] chrSep = new char[] { '-' }; foreach (string strRes in strTestString.Split(chrSep)) Console.WriteLine(strRes); Console.ReadKey(); } }
|
Like this code? Bookmark and Share:
|
|
|
|
No Response found!
|
|
|
|
|