Typeof keyword in C#

Sourav.Kayal
Posted by Sourav.Kayal under C# category on | Points: 40 | Views : 749
using System;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;
using System.Xml;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
using System.Data.SqlClient;

namespace BlogProject
{
class Test
{
}
class Program
{
static void Main(string[] args)
{
System.Type t = typeof(Int32);
Console.WriteLine(t.BaseType);

System.Type t2 = typeof(Test);
Console.WriteLine(t2.BaseType);
Console.ReadLine();
}
}
}

Comments or Responses

Login to post response