Q:

What is the difference between the “throw” and “throw ex” in .NET?

0

What is the difference between the “throw” and “throw ex” in .NET?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

“Throw” statement preserves original error stack whereas “throw ex” has the stack trace from their throw point. It is always advised to use “throw” because it provides more accurate error information.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now