title: Can I get the line of code that caused an exception?
body: <p>Other than reading the <code>GetFileName()</code> file and reading to line <code>GetFileLineNumber()</code> of a stackframe from</p>
  
  <pre><code>new StackTrace(exception).GetFrame(x)
  </code></pre>
  
  <p>is there a way to get the actual line of code (as a string) which caused an exception?</p>
  
  <p>Thanks</p>