title: Multiple XmlElement attributes on same property/class/
body: <p>I'm putting several legacy web services and the current web service into the same back end.</p>
  
  <p>But I have to keep the old web services compatible with there old interface.</p>
  
  <p>So my question:</p>
  
  <p>Is there a way I can set several attributes on, for example, a property?</p>
  
  <p>Like this:</p>
  
  <pre><code>[XmlElement("AvailableFrom",... what I need...)]
  [XmlElement("Available",... what I need...)]
  public DateTime AvailableFrom{get; set;}
  </code></pre>
  
  <p>One solution would be creating extra properties, but I really don't like the code bloat.</p>
  
  <pre><code>    private DateTime _availableFrom;
  
      [XmlElement("AvailableFrom")] 
      public DateTime AvailableFrom
      {
          get
          {
              return _availableFrom;
          }
          set
          {
              _availableFrom = value;
          }
      }
  
      [XmlElement("Available")] 
      public DateTime Available
      {
          get
          {
              return _availableFrom;   
          }
          set
          {
              _availableFrom = value;
          }
      }
  </code></pre>