title: Code efficiency in C#
body: <p>I am working with a treeview that contains nodes from a directory, where the lowest node is a piece of text from a file. I would like to be able to get that node, and get it's filename, and ive done so in the following line of code, but is there a nicer way of doing this? I want it to be as efficient as possible, and i'm wondering if its better to just create an integer to store the index number, rather than calculating it in the index itself. I know if the integer variable is created i will have to do that calculation anyway...</p>
  
  <p>(tVSNodes is a list of treenodes)</p>
  
  <p>TL:DR - is there a more efficient(faster execution) way of doing this?</p>
  
  <pre><code>string filename = tVSNodes[0].FullPath.Split('\\')[(tVSNodes[0].FullPath.Split('\\').Count()-2)];
  </code></pre>