Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I overload override methods/properties?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00976420
Message ID:
00976459
Views:
7
Einar,

You can't overload methods by return value but you can overload the method signature/parameter list and use the C# out keyword on parameter by parameter basis. This will allow you to propogate a single/series of values back to the caller and still return a value. The following snippet is taken from MSDN:-
class MyClass 
{
   public void MyMethod(int i) {i = 10;}
   public void MyMethod(out int i) {i = 10;}
}
Regards
Neil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform