C# Convert ToChar(Decimal)
Description
Convert ToChar(Decimal)
calling this method always
throws InvalidCastException.
Syntax
Convert.ToChar(Decimal)
has the following syntax.
public static char ToChar(
decimal value
)
Parameters
Convert.ToChar(Decimal)
has the following parameters.
value
- The decimal number to convert.
Returns
Convert.ToChar(Decimal)
method returns This conversion is not supported. No value is returned.
Example
using System;//from w ww . j a v a 2 s . c om
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(Convert.ToChar(66M));
}
}
The code above generates the following result.