Get Underlying System Type in CSharp
Description
The following code shows how to get Underlying System Type.
Example
using System;//from w w w.j a v a 2s . c o m
using System.Reflection;
class NameType
{
public static void Main()
{
Type t = Type.GetType("System.String");
Console.WriteLine("Underlying System Type : {0}",t.UnderlyingSystemType);
Console.WriteLine("Is Class : {0}",t.IsClass);
}
}
The code above generates the following result.