I have an assembly asdf.dll and it has a class ‘Class1’.
How can I get the type of Class1?
string a = 'Class1'; //Class1 is the name of class in asdf.dll string typeString = typeof(Class1).FullName; // here I only have the string Class1 and not Class Class1 AssemblyName assemblyName = AssemblyName.GetAssemblyName('asdf.dll'); Type type = Type.GetType(typeString + ', ' + assemblyName);
How can I get the type of a class from a string holding the class name?
where MyDll.MyClass is the class Location of your desire class/Form. Mydll is the your dll name. which u want to Call.