Assembly assembly = Assembly.LoadFrom("MyAssembly.dll");
Type[] types = assembly.GetTypes();
object instance = Activator.CreateInstance(type); MethodInfo method = type.GetMethod("MyMethod"); method.Invoke(instance, null);This code creates an instance of a specified type and invokes a method named "MyMethod" using reflection. Package Library: System.Reflection.