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