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

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.

>Hi
>
>I need to pass a parameter to a method, this parameter will dictate the return type (there are 3 overloaded methods in total).
>
>Is there a way of passing the class as a parameter or something similar, without instantiating it? Each of the 3 methods would therefore take in a different type of parameter.
>
>Hope that makes sense.
>
>Thanks
>Kev
Rip Ryness
International Falls, MN
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform