Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optional parameters and how to deal with them
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00790865
Message ID:
00791337
Views:
38
Stephen,

You've probably read my other reply by now ... I recanted that statement somewhat ... it depends on what you're doing. Most of the time, I like overloading.

~~Bonnie

>I don't agree that the VFP way is better. Overloading is not only good for optional parameter, it also handle different data type being passed the function. In VFP, we check VARTYPE() and/or PARAMETER() to decide what to do but in turn making the code harder to read and slower execution.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform