C# 4 default parameter values: How to assign a default DateTime/object value?

Posted by Dr. Zim on Stack Overflow See other posts from Stack Overflow or by Dr. Zim
Published on 2010-05-24T03:11:19Z Indexed on 2010/05/24 3:21 UTC
Read the original article Hit count: 301

Filed under:
|

If DateTime is an object and default C# parameters can only be assigned compile-time constants, how do you provide default values for objects like DateTime?

I am trying to initialize values in a POCO with a constructor, using named parameters with default values.

© Stack Overflow or respective owner

Related posts about c#

Related posts about default-parameters