title: Adding items to List<T> using reflection
body: <p>I was trying to add items to IList through reflection, but while calling the "Add" method an error was thrown  "object ref. not set". While debugging I came to know that the GetMethod("Add") was returning a NULL reference.</p>
  
  <pre><code>Type objTyp = typeof(MyObject); //HardCoded TypeName for demo purpose
  var IListRef = typeof (List&lt;&gt;);
  Type[] IListParam = {objTyp};          
  object Result = IListRef.MakeGenericType(IListParam);
  
  MyObject objTemp = new MyObject(); 
  Result.GetType().GetMethod("Add").Invoke(Result, new[] {objTemp });
  </code></pre>
  
  <p>Please help.</p>