title: How to Split Exception.StackTrace and get only the last line
body: <p>I have for example such an Exception.StackTrace:</p>
  
  <pre><code>message:Generic error:    in Npgsql.NpgsqlClosedState.Open(NpgsqlConnector context)
  in Npgsql.NpgsqlConnector.Open()
  in Npgsql.NpgsqlConnectorPool.GetPooledConnector(NpgsqlConnection Connection)
  in Npgsql.NpgsqlConnectorPool.RequestPooledConnector(NpgsqlConnection Connection)
  in Npgsql.NpgsqlConnection.Open()
  in Default.Page_Load(Object sender, EventArgs e) in c:\C\myapp\Default.aspx.cs:riga 33 Failed to establish a connection to '10.1.1.1'.
  </code></pre>
  
  <p>But what I would like to have is only the last line of the StackTrace, that is:</p>
  
  <pre><code>in Default.Page_Load(Object sender, EventArgs e) in c:\C\myapp\Default.aspx.cs:riga 33 Failed to establish a connection to '10.1.1.1'
  </code></pre>
  
  <p>How can I split the StackTrace to get only this? Thanks</p>