Xpode.com        Click here to Print this article.

How to read a method with reflection

				
Assembly asm = Assembly.LoadFrom("C:\\Test.dll");
Type t = asm.GetType("clsAmit");
MethodInfo mi = t.GetMethod("Function1", new Type[] { typeof(Object[]) });
Object ob = Activator.CreateInstance(t);
mi.Invoke(ob, new Object[] { "param1", "param2" });






Contributed by:
Guest
Guest user is that user who have done some activity on website without login. Activity contains commenting on any article, uploading an image on website etc.

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=164

Click here to go on website