This post will discuss how to convert a String to a List of characters in C#.

1. Using List.AddRange() Method

A simple solution is to use the List.AddRange() method to add all characters of a string to the end of an “existing” list. To get a List<char>, do like:

Download  Run Code

 
If you need a List<string> instead to store the characters, convert each character to a string first:

Download  Run Code

2. Using List Constructor

Alternatively, you can use the List constructor to initialize a new instance of the List<char> class with characters of a string. You can simply pass a string to the list constructor, as the following example illustrates:

Download  Run Code

 
If you want a list of strings, then you would use a List<string> rather than List<char>. To get a List<string>, transform each character to a string first:

Download  Run Code

3. Using Enumerable.ToList() Method

The Enumerable.ToList() method creates a List<T> from an IEnumerable<T>. It can be used to get a list of characters from a string, as follows:

Download  Run Code

That’s all about converting a String to a List of characters in C#.