Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a class instead of object?
Message
De
11/12/2003 11:19:36
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00858007
Message ID:
00858166
Vues:
16
>Are methods considered "overloaded" if they return different types?

Not as far as I know, the parameters control whether they are overloaded.

>Maybe another way to do this is to have one method that returns a basic Object that could then be cast to the appropriate type after it is returned.

There do seem to be a few solutions to this, I have kind of stepped back from my original goal now and have got a working solution, however, my main goal was to be able to call overloaded methods and governing the return type by passing the type as a parameter.

Kev
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform