title: C# xml serialization of multiple elements with same element name
body: <p>I have a xml file with following content:</p>
  
  <pre><code>&lt;offer&gt;
      ...
      &lt;date type="Foo"&gt;Some value 1&lt;/date&gt;
      &lt;date type="Bar"&gt;Some value 2&lt;/date&gt;
      &lt;date type="Baz"&gt;Some value 3&lt;/date&gt;
      ...
  &lt;/offer&gt;
  </code></pre>
  
  <p>And I have an enumeration like this:</p>
  
  <pre><code>public enum DateType
  {
      Foo, Bar, Baz
  }
  </code></pre>
  
  <p>And classes:</p>
  
  <pre><code>public class Date
  {
      public DateType Type { get; set; }
      public string Value { get; set; }
  }
  
  public class Schedule
  {
      ...
      public Date[] Dates { get; set; }
      ...
  }
  </code></pre>
  
  <p>What I need to do that xml can be deserialized in this classes?</p>
  
  <p>P.S. As a result I need Enum values to be mapped in <code>public Date[] Dates { get; set; }</code>. </p>