title: Building Expression Trees and using Expression.Call method
body: <p>I have two dummy classes named <code>TClass1</code> and <code>TClass2</code>. I would like to know how to build an expression tree to call the operation <code>TClass1.TestMethod</code>. I specifically have problem using <code>Expression.Call</code> method to create an expression based on instance methods of a class. Any help would be appreciated.</p>
  
  <pre><code>public class TClass1
  {
      public string Prop1 { get; set; }
      public int Prop2 { get; set; }
  
      public TClass2 TestMethod(TClass2 tc2, int c)
      {
          return new TClass2() { Cprop1 = "The result: " + this.Prop1 + ".", Cprop2 = this.Prop2 * c };
      }
  }
  
  public class TClass2
  {
  
      public string Cprop1 { get; set; }
      public int Cprop2 { get; set; }
  }
  </code></pre>