LANGUAGE
Bare rethrow
Rethrows the currently handled exception without replacing its original stack trace.
Formal Syntax & Structure
csharp syntaxcsharp
catch (InvalidOperationException) { throw; }Working Example
Example Snippetcsharp
try { throw new InvalidOperationException(); } catch (InvalidOperationException) { throw; }