Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Impossible?
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01283782
Message ID:
01283788
Views:
17
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform