I think it depends on what you think "preserves" means. See here [1]:
If the exception was rethrown in a method that is
different than the method where it was originally
thrown, the stack trace contains both the location
in the method where the exception was originally
thrown, and the location in the method where the
exception was rethrown
Putting aside same method/different method, the original stack trace is preserved, but StackTrace is augmented with the location the exception was rethrown.
There's also a code analysis warning for misuses of throw that uses "preserve" in its title [2].
It says in your profile that you work on Roslyn and I imagine you're familiar with how the exception syntax works with the CLR, so maybe you know something I don't know.
It says in your profile that you work on Roslyn and I imagine you're familiar with how the exception syntax works with the CLR, so maybe you know something I don't know.
There's also a code analysis warning for misuses of throw that uses "preserve" in its title [2].
It says in your profile that you work on Roslyn and I imagine you're familiar with how the exception syntax works with the CLR, so maybe you know something I don't know.
[1] http://msdn.microsoft.com/en-us/library/system.exception.sta...
[2] http://msdn.microsoft.com/en-us/library/ms182363.aspx