title: Advanced Optional Parameters (c#)
body: <p>The below code would be quite cool if it worked. However, I can't get it to compile, so I'm assuming this isn't going to work in any form?</p>
  
  <pre><code>public void foo(char[] bar = new char[]{'a'})
  {
  }
  </code></pre>
  
  <p>The next-best option is to just do </p>
  
  <pre><code>public void foo(char[] bar = null)
  {
     if (bar==null)
        bar = new {'a'};
  }
  </code></pre>