title: net xmlserializer : keeping attributes order
body: <p>I can sucessfully able to write my  class Item in a xml file. But the orders of atttributes change...</p>
  
  <p>Suppose I have Item class</p>
  
  <pre><code>class Item
  {
     Name
     Price
     Id
  
  }
  </code></pre>
  
  <p>when I write it to xml file using .net xmlserializer  I get different order from my class decleration such as </p>
  
  <pre><code>&lt;Item Price="y" Name="x"  Id="z"  /&gt;
  </code></pre>
  
  <p>But I want it like this [ keep decleration order]</p>
  
  <pre><code>&lt;Item Name="x" Price="y" Id="z"  /&gt;
  </code></pre>
  
  <p>How can İ do it in  NET? </p>