Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optional parameters and how to deal with them
Message
From
21/05/2003 01:17:36
 
 
To
21/05/2003 01:11:23
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00790865
Message ID:
00790918
Views:
24
Nope ... depends on the situation ... so maybe I was too quick to agree. <g> In the example you show, I'd definitely prefer to use an overloaded GetCustomer method. But sometimes having optional parameters is nice too. Not an option with C# however.

What?!? I can't have my cake and eat it too? <g>


>>Yep, VFP's way is definitely better ...
>
>really? so, if I understood correctly, you guys prefer to have several methods like: GetCustomerByPK, GetCustomerByEmail, GetCustomerByWhatever... instead of having a GetCustomer overloaded method?
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform