title: How to get a part from the full path in C#?
body: <p>I have a full path as given below.</p>
  
  <pre><code>C:\Users\Ronny\Desktop\Sources\Danny\kawas\trunk\csharp\ImportME\XukMe\bin\Debug\DannyGoXuk.DTDs.xhtml-math-svg-flat.dtd
  </code></pre>
  
  <p>How can the DTDs "part" to be fetched from this whole part?  </p>
  
  <p>Desired output:</p>
  
  <pre><code>C:\Users\Ronny\Desktop\Sources\Danny\kawas\trunk\csharp\ImportME\XukMe\bin\Debug‌​\DannyGoXuk.DTDs
  </code></pre>
  
  <p>Can I use <code>String</code>'s methods for this?<br>
  If yes, then how to fetch it?  </p>