C# Convert ToString(Char)
Description
Convert ToString(Char)
converts the value of the specified
Unicode character to its equivalent string representation.
Syntax
Convert.ToString(Char)
has the following syntax.
public static string ToString(
char value
)
Parameters
Convert.ToString(Char)
has the following parameters.
value
- The Unicode character to convert.
Returns
Convert.ToString(Char)
method returns The string representation of value.
Example
// w ww .j a va2 s . co m
using System;
public class MainClass{
public static void Main(String[] argv){
Console.WriteLine(Convert.ToString('a'));
}
}
The code above generates the following result.