C# -『Split word』

//function using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Oases { public class Program { static void SplitMe( string word, char chars ) { string[ ] nameArr; nameArr = word.Split ( chars ); foreach ( string tmp in nameArr ) { Console.WriteLine ( tmp ); } } public static void Main(string[] args) { //Your code goes here string word = "ASP.Net-MVC5"; SplitMe( word, '-'); } } } //Result //>>>ASP.Net //>>>MVC5
C# -『Split word』

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.