Mega Code Archive
Categories
/
C#
/
Reflection
Call GetType for int data type
using System; using System.Reflection; class TypeObjectFromInstanceApp { public static void Main(string[] args) { int i = 6; Type type = i.GetType(); Console.WriteLine(type.Name); } }