title: Split a separated string into hierarchy using c# and linq
body: <p>I have string separated by dot ('.') characters that represents a hierarchy:</p>
  
  <pre><code>string source = "Class1.StructA.StructB.StructC.FieldA";
  </code></pre>
  
  <p>How can I use C# and linq to split the string into separate strings to show their hierarchy?  Such as:</p>
  
  <pre><code>string[] result = new string[]
  {
      "Class1",
      "Class1.StructA",
      "Class1.StructA.StructB",
      "Class1.StructA.StructB.FieldA"
  };
  </code></pre>