You have the full name of the type, but you don't know what assembly its in? If thats the case then you are stuck, consider this code
Assembly 1
namespace Richard
{
class Hello
{
public void Foo()
{
}
}
}
Assembly 2
namespace Richard
{
class Hello
{
public void Bar()
{
}
}
}
now I write the code in my application assembly
Activator.CreateInstance(Type.GetType("Richard.Hel lo));
So the question is, which class is it meant to create, the one from assembly 1 or the one from assembly 2? Thats why you need the assembly name.
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog http://www.dotnetconsult.co.uk
Thank you. But I have FullName of the Type not the assembly. In Activator
class I need to pass either Type or FullName of the assembly.
So How to do this?