title: C# inline conditional in string[] array
body: <p>How could you do the following inline conditional for a string[] array in C#. Based on a parameter, I'd like to include a set of strings...or not. This question is a followup of <a href="https://stackoverflow.com/questions/7788270/assigning-values-to-c-sharp-string-array-based-on-parameter" title="Assigning values to C# string array based on parameter">this one on stackoverflow</a>.</p>
  
  <pre><code>        //Does not compile
          bool msettingvalue=false;
          string[] settings;
          if(msettingvalue)
              settings = new string[]{
                  "setting1","1",
                  "setting2","apple",
                  ((msettingvalue==true) ? "msetting","true" :)};
  </code></pre>
  
  <p>If msettingvalue is true, I'd like to include two strings "msetting","true" : otherwise no strings.</p>
  
  <p><strong>Edit1</strong>
  It doesn't have to be a key value pair...what if it were 5 strings to be (or not to be) added...I didn't think it'd be that tricky.</p>
  
  <p>(Also...could someone with enough rep make a "inline-conditional" or "conditional-inline" tag?)</p>