Create Type with just the fullname

  • Thread starter Thread starter Dan Holmes
  • Start date Start date
D

Dan Holmes

Is there any way to create an instance of type Type when all that is
known is the FullName of the type? I was trying Type.GetType but that
requires an AssemblyQualifiedName. I don't have the assembly, just the
name of the class.

dan
 
Dan,

No, it is not possible, you need the assembly name as well. The only
way you could create a type from the full name of the type without the
assembly name is to make the call to GetType in the assembly that the type
is located in. Otherwise, you need the assembly qualified name of the type
as well.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top