Code
using System;
using System.Text;
using System.Collections.Generic;
public class Class1
{
public Class1()
{
}
static void Main(String[] args)
{
Double dl = 3.1546;
int getType=sizeof(double);
Console.WriteLine(getType.ToString());//putout:8
Type gtype = dl.GetType();
Type g_type=typeof(int);
Console.WriteLine(g_type.ToString());//putout:System.Int32
Console.WriteLine(gtype.ToString());//putout:System.Double
Type s_Short=typeof(short);
Console.WriteLine(s_Short.ToString());//output:System.Int16
}
}
using System;
using System.Text;
using System.Collections.Generic;
public class Class1
{
public Class1()
{
}
static void Main(String[] args)
{
Double dl = 3.1546;
int getType=sizeof(double);
Console.WriteLine(getType.ToString());//putout:8
Type gtype = dl.GetType();
Type g_type=typeof(int);
Console.WriteLine(g_type.ToString());//putout:System.Int32
Console.WriteLine(gtype.ToString());//putout:System.Double
Type s_Short=typeof(short);
Console.WriteLine(s_Short.ToString());//output:System.Int16
}
}