title: How do I deserialize XML into an object using a constructor that takes an XDocument?
body: <p>I have a class:</p>
  
  <pre><code>public class MyClass
  {
     public MyClass(){}
  }
  </code></pre>
  
  <p>I would like to be able to use an XMLSeralizer to Deserialize an XDocument directly in the constructor thus:</p>
  
  <pre><code>public class MyClass
  {
     private XmlSerializer _s = new XmlSerializer(typeof(MyClass));
  
     public MyClass(){}
     public MyClass(XDocument xd)
     {
        this = (MyClass)_s.Deserialize(xd.CreateReader());
     }
  }
  </code></pre>
  
  <p>Except I am not allowed to assign to "this" within the constructor.</p>
  
  <p>Is this possible?</p>