C# How can I un method split my function easily? code example
Example 1: string.split c#
string toSplit = "I Hope this will help YOU!";
string[] Splitted = toSplit.Split(' ');
Example 2: string split c#
char[] delimiterChars = { ' ', ',', '.', ':', '\t' };
string text = "one\ttwo three:four,five six seven";
System.Console.WriteLine($"Original text: '{text}'");
string[] words = text.Split(delimiterChars);
System.Console.WriteLine($"{words.Length} words in text:");
foreach (var word in words)
{
System.Console.WriteLine($"<{word}>");
}