Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetMethod and overloaded methods
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
GetMethod and overloaded methods
Divers
Thread ID:
00855520
Message ID:
00855520
Vues:
49
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.
Répondre
Fil
Voir

Click here to load this message in the networking platform