title: string manipulation in c#
body: <p>I have a string like this, that is some names separated by some backslashes:</p>
  
  <pre><code>string mainString = @"Sean\John\Rob\fred";
  </code></pre>
  
  <p>How can I get the last name in above string format, in this case "fred", while I want the name to be the last name in the string (after all backslashes)?</p>
  
  <p>Thanks.</p>