tags:

views:

59

answers:

1

Hi all.

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?

+7  A: 

Maybe you could try:

Type type2 = Type.GetType(type.AssemblyQualifiedName);
Luki
It works. Thanx!