A dirty approach commonly suggested is the use of a params object array, so
at least you only need a single constructor. Its bad practice though and
better to be avoided if possible...
Eric G explains why they left defaults out here .........
http://www.gotdotnet.com/Community/M...aspx?id=228307
Regards
John Timney
Microsoft Regional Director
Microsoft MVP
"Bob Rundle" <ru****@rundle.com> wrote in message
news:Ou**************@tk2msftngp13.phx.gbl...
I've just created 4 contructors in C# with various combinations of
arguments. If I had been using C++ I would have needed only one because I
could have used default arguments. I find the lack of default arguments
exceedingly tedious.
What is the reason that C# does not support default arguments. Is it a
performance thing? A correctness thing?
Regards,
Bob Rundle