title: Setting Key/Value Pairs
body: <p>I've created a List as a property of the class, and want to set the Key/Value pairs when defining the List. I was originally using a structure but realized it's probably not the ideal solution so I changed it to a List. The problem is I'm getting an error with the syntax.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>private List&lt;KeyValuePair&lt;String,String&gt;&gt; formData = new List&lt;KeyValuePair&lt;String, String&gt;&gt;[]
      {
              new KeyValuePair&lt;String, String&gt;("lsd",""),
              new KeyValuePair&lt;String, String&gt;("charset", "")
      };
  </code></pre>