GetType across assemblies question
.NET (Core and Framework)
1
Posts
1
Posters
0
Views
1
Watching
-
I have two assemblies, X and Y. Y defines a class X.Foo X references Y. In X I have the following:
System.Type t = System.Type.GetType("Y.Foo");
This fails. If instead I write:System.Type t = System.Type.GetType("Y.Foo,**Y**");
it works. I was expecting that the explicit assembly specifier should not be required given that I am referencing the assembly allready. Can somebody explain the subtleties of GetType in this situation? cheers, -=jarl=-