Here's the code:
public class Program
{
public static void Main(string[] args)
{
Test test = new Test();
}
}
public class Test
{
public Test() {
Console.WriteLine("type: " + Type.GetType("Registration"));
}
}
public class Registration
{
public int mAge;
public string mName;
public Registration() {}
}
When it try to get the type for Registration, it returns null. So both .Name or .AssemblyQualifiedName can't be accessed.
I can provide AssemblyQualifiedName only if GetType() doesn't return null.
Why GetType() returns null? Hope the question is clear.