title: Serialize List<Tuple<String, String>> to Attributes
body: <p>I want to serialize List of tuples to XML Attributes. For example:</p>
  
  <pre><code>List&lt;Tuple&lt;String, String&gt;&gt; attributes = new List&lt;Tuple&lt;String, String&gt;&gt;();
  attributes.Add(New Tuple("att1", value1"));
  attributes.Add(New Tuple("att2", value2"));
  </code></pre>
  
  <p>It should appear as:</p>
  
  <pre><code>&lt;Root att1="value1" att2="value2"&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>Edit:
  I have a class like this which I am serializing using XmlSerializer:</p>
  
  <pre><code>public class Root
  {
       List&lt;Tuple&lt;String, String&gt;&gt; attributes = new List&lt;Tuple&lt;String, String&gt;&gt;();
  
       //other attributes and elements exist in this class
  }
  </code></pre>
  
  <p>Is there an easy way of doing it?</p>
  
  <p>Thanks</p>