MCQs > IT & Programming > C# > What is the difference between 'throw ex' and 'throw' in C#?

C# MCQs

What is the difference between “throw ex” and “throw” in C#?

Answer

Correct Answer: “throw ex” will replace the stack trace of the exception with stack trace info of re throw point and “throw” will preserve the original stack trace info

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it