With C# you can pass nulls into a method in place of a
parameter. C# does not allow for "optional" method parameters. But
it does allow for method overload. Method overload means you can have
multiple methods with the same name, but each method must have a different
signature. A method's signature is defined by it's parameters (name and
data type). So, you can have a method named GetCustomerName(int
CustomerID) and GetCustomerName(string emailAddress). Same method name,
different signatures.
When I first started C#, I didn't think this was a big
deal. How wrong I was. Method overloading is
awesome.
Thanks
Tom
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shuck
Sent: Friday, August 04, 2006 12:39 PM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: Re: [DFW CFUG] a local perspective on the CF8 wishlist
On 8/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
... or a method and a way to allow null for arguments (if argument has a type of date, allow a null value)
--
~Dave Shuck
[EMAIL PROTECTED]
www.daveshuck.com
www.worldwildweb.biz
_______________________________________________ Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.HostMySite.com www.teksystems.com/
