title: How to dynamically create a class?
body: <p>I have a class which looks like this:</p>
  
  <pre><code>public class Field
  {
      public string FieldName;
      public string FieldType;
  }
  </code></pre>
  
  <p>And an object <code>List&lt;Field&gt;</code> with values:</p>
  
  <pre><code>{"EmployeeID","int"},
  {"EmployeeName","String"},
  {"Designation","String"}
  </code></pre>
  
  <p>I want to create a class that looks like this:</p>
  
  <pre><code>Class DynamicClass
  {
      int EmployeeID,
      String EmployeeName,
      String Designation
  }
  </code></pre>
  
  <p>Is there any way to do this? </p>
  
  <p>I want this to be generated at runtime. I don't want a physical CS file residing in my filesystem.</p>