C Sharp (C#) - Exception Handling
Why is it generally recommended to use
throw; instead of throw ex; when rethrowing exceptions in C#?throw; instead of throw ex; when rethrowing exceptions in C#?throw; preserves this stack trace, while throw ex; resets it to current method, losing original info.throw; preserves the original stack trace, aiding debugging. -> Option D15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions