C# Single GetTypeCode
Description
Single GetTypeCode
returns the TypeCode for value type
Single.
Syntax
Single.GetTypeCode
has the following syntax.
public TypeCode GetTypeCode()
Returns
Single.GetTypeCode
method returns The enumerated constant, TypeCode.Single.
Example
The following code shows how to use Single.GetTypeCode
method.
/* w ww . j a va 2 s.com*/
using System;
public class MainClass{
public static void Main(String[] argv){
float f= 0.1F;
Console.WriteLine(f.GetTypeCode());
}
}
The code above generates the following result.