title: How to remove all the null elements inside a generic list in one go?
body: <p>Is there a default method defined in .Net for C# to remove all the elements within a list which are <code>null</code>?</p>
  
  <pre><code>List&lt;EmailParameterClass&gt; parameterList = new List&lt;EmailParameterClass&gt;{param1, param2, param3...};
  </code></pre>
  
  <p>Let's say some of the parameters are <code>null</code>; I cannot know in advance and I want to remove them from my list so that it only contains parameters which are not null.</p>