title: What is best way for object null and empty check?
body: <p>I have code as below in C#:</p>
  
  <pre><code>If  (this._university != Null and this._university.department !=null &amp;&amp;
       this._university.department.class !=null &amp;&amp; 
       this._university.department.class.student != null &amp;&amp; 
       this._university.department.class.student.name != null &amp;&amp;
       this._university.department.class.student.name.firstname != null &amp;&amp;
       this._university.department.class.student.name.firstname !=String.empty)
  
  {
     // selecting first letter of Firstname
     var F_firstname = this._university.department.class.student.name.firstname[0].tostring();
  }
  </code></pre>
  
  <p>But the code looks very bad for checking null object.Do we have better way for null check for objects?</p>