title: How get Child Objects of a Object In C#?
body: <p>In VB.net , this code is ok:</p>
  
  <pre><code>Dim oPS as Object= CreateObject("Photoshop.Application.10")
  Dim oDocument as Object= oPS.ActiveDocument
  </code></pre>
  
  <p>But in C#, this code occur error:</p>
  
  <pre><code>Object oPS = COMCreateObject("Photoshop.Application.10");
  Object oDocument = oPS.ActiveDocument;
  </code></pre>
  
  <p>Error when build</p>
  
  <pre><code>Error   2   'object' does not contain a definition for 'ActiveDocument' and no extension method 'ActiveDocument' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
  </code></pre>
  
  <p>How get Child Objects of a Object In C#(the same vb.net)?</p>