title: Find null children
body: <pre><code>public class Node
  {
      public Node rightNode;
      public Node bottomNode;
      public double x_position;
      public double z_position;
      public double width;
      public double length;
      public bool isOccupied;
  }
  </code></pre>
  
  <p>In this code i have  a self-referencing property which is <code>rightNode</code>.
  So my question is, how can I determine all nodes with <code>null</code> <code>rightNode</code>.</p>
  
  <pre><code>var rootNode = this.rootNode;
  while (rootNode != null)
  {
      rootNode = rootNode.right
  }
  </code></pre>
  
  <p>So far I need to iterate all the branches to check if it's null, is there another way to return all null objects without iterating it?</p>