Mega Code Archive

 
Categories / C# by API / System
 

Int32 GetType()

using System; using System.Reflection;     class TypeObjectFromInstanceApp {     public static void Main(string[] args)     {         int i = 6;         Type type = i.GetType();         Console.WriteLine(type.Name);     } }