//Method 1 Getting the framework type info
string StringType
Type TheType = StringType.GetType();
//Then TheTypeVariable will have all the information on the type
Console.WriteLine(TheType.Name)
//Using System.Reflection you can also find all the properties ee my answer on
//Method 2 Testing
if(YourVar is YourType)
Console.WriteLine("Is your type you are testing for")
string a = "This is a string";
Console.WriteLine(a.GetType())
public static Type GetType(string typeName)
{
var type = Type.GetType(typeName);
if (type != null) return type;
foreach (var a in AppDomain.CurrentDomain.GetAssemblies())
{
type = a.GetType(typeName);
if (type != null)
return type;
}
return null;
}