C# Console String Methods

Split String in C# and Store It in Array

C# split method returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string delimiter.

Here is split example:

Output:

 

C# Split example 2:ย More than one separator can be used to split the text

Output:

๐Ÿ™‚

 

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.