Dynamically Calling Methods
page 7 of 7
by . .
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 29471/ 61


This article has kind of been your quick introduction to reflection in .NET, but at the same time focused on the aspect of methods and specifically the MethodInfo class. There is a lot more out there on reflection, so check out the documentation on the System.Reflection namespace and see what comes up.

Also, as a quick point of interest, you can actually shorten the entire Page_Load method above to -

Dim myparamarray() As Object = {"Sample Name"}
Response.Write(GetType(WebForm3).GetMethod("Return1").Invoke(Me, myparamarray))

View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-22 3:22:02 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search