Quantcast
Channel: Microsoft Techies
Viewing all articles
Browse latest Browse all 430

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

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

Viewing all articles
Browse latest Browse all 430

Trending Articles