title: How to pass an Object type to Type parameter in C#
body: <p>I have a function that has Type Parameter.</p>
  
  <pre><code>public static object SetValuesToObject(Type tClass, DataRow dr)
  {
     //
     .............
     //
     return object
  } 
  </code></pre>
  
  <p>I have no idea how to pass a class as parameter for this function.
  Here i want to pass parmeter Class "Product".</p>
  
  <p>I tried this</p>
  
  <pre><code> SetValuesToObject(Product,datarow);
  </code></pre>
  
  <p>But it doesn't work. How could i do this? </p>