Check if any property of class is null
<p>I have following class:-</p>

<pre><code>public class Requirements
    {
        public string EventMessageUId { get; set; }
        public string ProjectId { get; set; }        
        public List&lt;Message&gt; Message { get; set; }        
    }
</code></pre>

<p>I am mapping it with incomming Json:-</p>

<pre><code>Requirements objRequirement = JsonObject.ToObject&lt;Requirements&gt;();
</code></pre>

<p>I wanted to check if any property of class has no value or left null after above mapping.</p>

<p>For this I tried :-</p>

<pre><code>bool isNull= objRequirement.GetType().GetProperties().All(p =&gt; p != null);
</code></pre>

<p>But while debugging I found that whether property left Null or not each time it gives value true.</p>

<p>Please help me how can I achieve this by <code>Avoioding For/foreach</code> loop.</p>