title: Initializing class fields via Emit/Reflection
body: <p>Suppose I have three classes A,B and C generated via emit/reflection abilities of .NET framework, and emmiting object in following manner:</p>
  
  <pre><code>class A
  {
     B someField1;
     C someField2;
  }
  </code></pre>
  
  <p>I need to initialize someField1 and someField2 after creating object:</p>
  
  <pre><code>A someObject;
  </code></pre>
  
  <p>How to do this? The someObject type is object but I have no idea how to cast it to A type created dynamically and enter fields and initialize it. Thank's in advance for help.</p>