Mega Code Archive

 
Categories / C# Tutorial / Reflection
 

Obtain type information using the Object GetType method

using System; using System.Text; class MainClass {     public static void Main()     {           StringBuilder sb = new StringBuilder();         Type t6 = sb.GetType();     } }