N
Nick Mifsud
Hello,
I hope this is the right forum for this question.
I have a custom class in VB.Net.
When I instantiate it and call class.GetType() it returns what I expect ie)
AssemblyName.ClassName
However if I try :
Type.GetType("AssemblyName.ClassName") I get a TypeLoadException
"Could Not Load Type".
I have tried many different combinations of Name but It fails to load
everytime.
I feel I must be doing something wrong.
I have checked all the references and they all seem to work.
As mentioned, the class is successfully instantiated so one assumes that it
can be loaded but the Type operator does not seem to work for me.
What could I be doing wrong?
(Or, where should I post this question?)
Many thanks,
Nick
I hope this is the right forum for this question.
I have a custom class in VB.Net.
When I instantiate it and call class.GetType() it returns what I expect ie)
AssemblyName.ClassName
However if I try :
Type.GetType("AssemblyName.ClassName") I get a TypeLoadException
"Could Not Load Type".
I have tried many different combinations of Name but It fails to load
everytime.
I feel I must be doing something wrong.
I have checked all the references and they all seem to work.
As mentioned, the class is successfully instantiated so one assumes that it
can be loaded but the Type operator does not seem to work for me.
What could I be doing wrong?
(Or, where should I post this question?)
Many thanks,
Nick