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

1. Using Char.ToString() method

To convert a single char to a string in C#, you can use the ToString() method. It converts the current char value to its string equivalent, as the following code example illustrates.

Download  Run Code

2. Using String Constructor

You can also create a new string instance using the string constructor. The specified value is repeated a certain number of times, as supplied in the second parameter.

Download  Run Code

 
Alternatively, you can construct a character array from the given character and create a new String instance from it.

Download  Run Code

3. Using $ (String Interpolation)

If you’re using the C# 6, consider using the interpolated string. An interpolated string is identified using the $ special character leading the string literal, and provides a convenient syntax to format strings.

Download  Run Code

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