title: class XmlRootAttribute for serialization and deserialization
body: <p>I would like to create a class that is used for serialization and deserialization. When serializing the attribute name should be "MyNameRequestType" and "MyNameResponseType" when deserializing.</p>
  
  <p>The question is how should i create or override the XmlRootAttribute?</p>
  
  <p>Eg.</p>
  
  <pre><code>[System.SerializableAttribute()]
  [System.Xml.Serialization.XmlRootAttribute("MyNameRequestType", IsNullable = false)]
  public class MyClass
  {
      public string MyProperty { get; set; }
  }
  </code></pre>