How check whether class members are not null or empty
<p>I have a class with only string members like this :</p>

<pre><code>public class MyClass
{
    public string MyProp1 { get; set; }
    public string MyProp2 { get; set; }
}
</code></pre>

<p>I create an instance :</p>

<pre><code>Var myClass = new MyClass();
</code></pre>

<p>Later in the code, I’d like to know if all the member (MyProp1 and MyProp2) are not null or empty. I know I can use a <code>if</code> of course but there is much more properties than 2 in my real code.</p>

<p>Is there a way to do this ?</p>

<p>Thanks,</p>
