Check out example codes for "split using string c#". It will help you in understanding the concepts better.
Code Example 1
//Split using a string delimiter instead of a char
data.Split(new string[] { "xx" }, StringSplitOptions.None);
Code Example 2
string[] separatingStrings = { "<<", "..." };
string text = "one<<two......three<four";
System.Console.WriteLine($"Original text: '{text}'");
string[] words = text.Split(separatingStrings, System.StringSplitOptions.RemoveEmptyEntries);
System.Console.WriteLine($"{words.Length} substrings in text:");
foreach (var word in words)
{
System.Console.WriteLine(word);
}
Code Example 3
listStrLineElements = line.Split(',').ToList();
Learn ReactJs, React Native from akashmittal.com