Reputation: 7079
This is my code:
using System.Windows.Forms;
Type type = typeof(Form);
Type type2 = Type.GetType(type.FullName);
As a result: type2==null
What I am doing wrong?
Upvotes: 2
Views: 245
Reputation: 4001
Maybe you could try:
Type type2 = Type.GetType(type.AssemblyQualifiedName);
Upvotes: 7