C# Single GetType
Description
Single GetType
gets the Type of the current instance.
Syntax
Single.GetType
has the following syntax.
public Type GetType()
Returns
Single.GetType
method returns The exact runtime type of the current instance.
Example
The following code shows how to use Single.GetType
method.
/*from w w w .j a va 2 s . c o m*/
using System;
public class MainClass{
public static void Main(String[] argv){
float f= 0.1F;
Console.WriteLine(f.GetType());
}
}
The code above generates the following result.