This article illustrates the different techniques to convert a string to a char in C#.

To convert a single character string to a char, you can use the char.Parse() method. It converts the value of the specified single-character string to its Unicode character equivalent.

Download  Run Code

 
If the string is a multi-character string, you can use the string.ToCharArray() method to get a Unicode character array from the characters in the string instance.

Download  Run Code

That’s all about converting a string to a char in C#.