title: How to set the InnerException of custom Exception class from its constructor
body: <p>How can I set the <code>InnerException</code> property of an <code>Exception</code> object, while I'm in the constructor of that object? This boils down to finding and setting the backing field of a property that has no setter.</p>
  
  <p>BTW: I have seen this <a href="http://evain.net/blog/articles/2009/05/01/getting-the-field-backing-a-property-using-reflection" rel="noreferrer">evain.net - Getting the field backing a property using Reflection</a> but looking for non IL-based solution, if possible.</p>
  
  <p>The constructor of <code>Exception</code> is the place where the <code>Exception</code> type is created, so I cannot call it using the base class constructor <code>MyException() :base(...)</code> etc.</p>