string ClassName = "AssemblyRefTest.AssemblyClass";
if (ClassName != string.Empty)
{
if (ClassName.StartsWith("AssemblyRefTest"))
{
System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(Application.StartupPath + "\\AssemblyRefTest.dll");
Type tp = assembly.GetType(ClassName);
}
else if (ClassName.StartsWith("anotherdll.dll"))
{
}
}