C# Convert ToChar(Double)
Description
Convert ToChar(Double)
calling this method always throws
InvalidCastException.
Syntax
Convert.ToChar(Double)
has the following syntax.
public static char ToChar(
double value
)
Parameters
Convert.ToChar(Double)
has the following parameters.
value
- The double-precision floating-point number to convert.
Returns
Convert.ToChar(Double)
method returns This conversion is not supported. No value is returned.
Example
using System;/*from www . j av a2s . c o m*/
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(Convert.ToChar(66.0));
}
}
The code above generates the following result.