Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetMethod and overloaded methods
Message
From
03/12/2003 13:05:04
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
GetMethod and overloaded methods
Miscellaneous
Thread ID:
00855520
Message ID:
00855520
Views:
50
If I know the parameter list of an overloaded method, I can pass an array of the types when calling Type.GetMethod() to retrieve a specific overload.

However, if I don't know if the method is overloaded, how can I obtain a list of the overloads?

I could use the brute-force approach of getting the collection of all methods using GetMethods(), then looping through the collection looking for like-named methods and calling the GetParameters() method for each, but it would seem that there must be a more direct way that I'm just not grokking from the documentation.

Thanks.
>>-Steve->>

Steve Sawyer
Geeks and Gurus, Inc.
Reply
Map
View

Click here to load this message in the networking platform