string s = "hello"; Type t = s.GetType(); Console.WriteLine(t.FullName); // output: System.String
int i = 42; Type t = i.GetType(); Console.WriteLine(t.Assembly.FullName); // output: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089In this example, we create a variable i of type int and call its GetType method. We then print the full name of the assembly that contains the type using the Assembly.FullName property. The package library for the System Object GetType method is the System.Runtime.dll.