title: Dynamically Create C# Class or Object
body: <p>I have this structure.</p>
  
  <pre><code>public class FirstClass
  {
     public List&lt;Foo&gt; FooList{ get; set; }
  }
  
  public class Foo{
     //Ex:
     //public string Name{ get; set; }  
  }
  
  public List&lt;Foo&gt; GetFoo(){
  //I'm use Firstclass like this here typeof(FirstClass);
  //I want create here dynamic property for Foo class.
  }
  </code></pre>
  
  <p>And my problem is, i want create property for "Foo" class from "GetFoo()" function. Same time, this function return "List" "Foo" type. I'm research <a href="https://stackoverflow.com/questions/15819720/dynamically-add-c-sharp-properties-at-runtime">"Dynamically Add C# Properties at Runtime"</a>, <a href="https://stackoverflow.com/questions/3862226/how-to-dynamically-create-a-class-in-c">"How to dynamically create a class in C#?"</a> but the answers in these links are not referenced as return values or referenced to another class. How i can do this?</p>