Exception Stack Trace difference between Debug and Release mode
<p>The code below generates different exception stack trace in both debug and release mode:</p>

<pre><code>static class ET
{
    public static void E1()
    {
        throw new Exception("E1");
    }
    public static void E2()
    {
        try
        {
            E1();
        }
        catch (Exception e)
        {

            throw;

        }
    }

    public static void Entry()
    {
        try
        {

            E2();
        }
        catch (Exception e)
        {           
            Console.WriteLine(e.StackTrace);
        }
    }
}
</code></pre>

<p>Result in Debug Mode:</p>

<blockquote>
  <p>at ET.E1() in D:\myStudio\CSharp\CSharp4.0\MyCSharp\ExceptionHandling.cs:line 47</p>
  
  <p>at ET.E2() in D:\myStudio\CSharp\CSharp4.0\MyCSharp\ExceptionHandling.cs:line 58</p>
  
  <p>at ET.Entry() in D:\myStudio\CSharp\CSharp4.0\MyCSharp\ExceptionHandling.cs:line 68</p>
</blockquote>

<p>Result in Release Mode:</p>

<blockquote>
  <p>at ET.E2() in D:\myStudio\CSharp\CSharp4.0\MyCSharp\ExceptionHandling.cs:line 55</p>
  
  <p>at ET.Entry() in D:\myStudio\CSharp\CSharp4.0\MyCSharp\ExceptionHandling.cs:line 68</p>
</blockquote>

<p>Please note that the first line from the result in Release mode is missing. How to return the offending line in release mode.</p>
