title: How to get the value of a property of a class in a non executing assembly through reflection
body: <p>I'm having trouble while getting the value of the text property in a non-executing assembly; I read an assembly from disk via reflection, then i get all classes in the assembly to search for the Text property in a windows form class which is initialized by win forms designer. So far i have the following code:</p>
  
  <pre><code>static void Main(string[] args)
  {
      Assembly asm = Assembly.LoadFrom(Path.Combine(path, "Assembly.exe"));
      PropertyInfo[] props;
      foreach (Type t in asm.GetTypes())
      {
          var value = t.GetProperty("Text").GetValue(/*Not sure what to put here*/)
      }
  }
  </code></pre>
  
  <p>And this is how the designer generated the form</p>
  
  <pre><code>    Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None
      Me.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(128, Byte), Integer))
      Me.ClientSize = New System.Drawing.Size(234, 181)
      Me.Cursor = System.Windows.Forms.Cursors.Default
      Me.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
      Me.ForeColor = System.Drawing.SystemColors.WindowText
      Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
      Me.Location = New System.Drawing.Point(581, 222)
      Me.MaximizeBox = False
      Me.MinimizeBox = False
      Me.Name = "winform"
      Me.RightToLeft = System.Windows.Forms.RightToLeft.No
      Me.StartPosition = System.Windows.Forms.FormStartPosition.Manual
      Me.Text = "Title"
      Me.fraDías.ResumeLayout(False)
      Me.ResumeLayout(False)
  </code></pre>
  
  <p>Keep in mind that the assembly is on disk and non-executing and that I want to retrieve the value of the Text property of every winform (I guess it should be somewhere hardcoded in the assembly since it was generated by the winforms designer)</p>
  
  <p>Please tell me if this is possible, thanks!</p>