This post will discuss how to split a string in C# using a specified delimiter and convert it into a list of strings.

The idea is to use the String.Split() method to split a string with a specified delimiter. It returns a string array that contains the substrings delimited by elements of the specified string. To convert a string array into a list of strings, we can use any of the following methods.

1. Using Enumerable.ToList() method

Download  Run Code

2. Using List Constructor

Download  Run Code

3. Using List<T>.AddRange() method

Download  Run Code

That’s all about splitting a string using delimiter in C#.