title: How do I default a parameter to DateTime.MaxValue in C#?
body: <p>I wish to say:</p>
  
  <pre><code>public void Problem(DateTime optional = DateTime.MaxValue)
  {
  }
  </code></pre>
  
  <p>But the compiler complains that DateTime.MaxValue is not a compile time constant.</p>
  
  <p>DateTime.MinValue is easy, just use default(DateTime)</p>
  
  <p>see also "<a href="https://stackoverflow.com/questions/5117970/how-do-i-default-a-parameter-to-guid-empty-in-c">How do I default a parameter to Guid.Empty in C#?</a>"</p>
  
  <p>I do not wish to use method overloading, as the method I am trying to tame has 101 parameters!</p>