Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Impossible?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01283782
Message ID:
01283788
Vues:
18
This message has been marked as the solution to the initial question of the thread.
AFAIK, the return type is part of the signature of a method and cannot change. However, it could return an object. In that object, you would have the 4 responses types and a flag to tell which one to use.

HTH

>I would like to write one method that takes one parameter, based on the data contained in that parameter I would like that method to return a variable with one of 4 possible datatypes.
>Is this impossible?
>How can I work around it?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform