title: XMLSerialization in C#
body: <p>I have a simple type that explicitly implemets an Interface.</p>
  
  <pre><code>public interface IMessageHeader
  {
      string FromAddress { get; set; }
      string ToAddress   { get; set; }
  }
  
  [Serializable]
  public class MessageHeader:IMessageHeader
  {
    private string from;
    private string to;
  
    [XmlAttribute("From")]
    string IMessageHeade.FromAddress
    {
      get { return this.from;}
      set { this.from = value;}
    }
  
   [XmlAttribute("To")]
   string IMessageHeade.ToAddress
   {
      get { return this.to;}
      set { this.to = value;}
   }
  }
  </code></pre>
  
  <p>Is there a way to Serialize and Deserialize objects of type IMessageHeader??</p>
  
  <p>I got the following error when tried</p>
  
  <p>"Cannot serialize interface IMessageHeader"</p>