title: Checking if all values are null inside an initialised object
body: <p>I have some code that reads data from Excel sheets &amp; put to List.</p>
  
  <p>Now here comes a scenario that user copy some valid data then leaves a lot of rows empty &amp; again then copy valid data. This reads a lot of empty rows. I am using some old code for excel read &amp; that might be used somewhere else so I don't wish to mess up with that.</p>
  
  <p>The problem is I have a lot of object inside List that are initialised but all values are null. So I ended up checking all attribuets in if like:</p>
  
  <pre><code>if (lstConsolidatedData != null)
  {
      foreach (var lst in lstConsolidatedData)
      {
           if(lst.a!=null &amp;&amp; lst.b!=null &amp;&amp; lst.c!=null //&amp; so on....)
           {
             //some stuff...
           }
      }
  }
  </code></pre>
  
  <p>I know this is not wither best or maintainable way since excel sheets can be modified &amp; thus whole columns list code need to be changed again &amp; again for a single column added or removed from excel.</p>
  
  <p><strong>Is there any way to check all values inside <code>lst</code> for null in a single statement?</strong>
  some thing like <code>lst.all !=null</code> </p>
  
  <p>Any idea if not code will also work for me. </p>
  
  <p>Please note <code>lst==null</code> is <code>false</code></p>
  
  <p>EDIT: using answers from below I am getting this error</p>
  
  <p><img src="https://i.stack.imgur.com/Z7D9W.jpg" alt="enter image description here"></p>
  
  <p>EDIT: 
  <code>o.GetType().GetProperties().Any(c =&gt; c.GetValue(o) == null)</code> works for <strong>any</strong> null but What I actually want to delete rows which contains no data in <strong>all columns</strong> not for particular one or two column. Issue is not resolved by <code>o.Item1 != null &amp;&amp; ...</code> also since name/number of columns changes frequently.</p>