title: LINQ Traverse Upwards and Retrieve Parent Child Relationship
body: <p>I have a tree structure which is in the following format:</p>
  
  <pre><code>public class MyObject
  {
     public Guid ID { get; set; }
  
     public Guid ParentID { get; set; }
  
     public string Name { get; set; }
  
     private List&lt;MyObject&gt; MyChildren { get; set; }
  }
  </code></pre>
  
  <p>If I have the <strong>ID</strong> of deeply nested Child within the children of <strong>MyObject</strong> I need to traverse upwards and get the Parent > Child relationship in a tree structure using LINQ preferably. </p>
  
  <p>Any Ideas?</p>