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

Summary

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-2021 ASPAlliance.com  |  Page Processed at 2021-02-27 4:30:25 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search