Optional non-system type parameters

Posted by Courtney de Lautour on Stack Overflow See other posts from Stack Overflow or by Courtney de Lautour
Published on 2010-04-21T00:16:17Z Indexed on 2010/04/21 0:23 UTC
Read the original article Hit count: 537

Filed under:
|

C#4.0 obviously brings optional parameters (which I've been waiting for, for quite some time). However it seems that because only system types can be const that I cannot use any class/struct which I have created, as an optional param.

Is there a some way which allows me to use a more complex type as an optional parameter. Or is this one of the realities that one must just live with?

© Stack Overflow or respective owner

Related posts about c#4.0

Related posts about optional-parameters