What is difference between the “throw” and “throw ex” in .NET?
Pradeep Yadav
Select an image from your device to upload
In Throw, the original exception stack trace will be retained. To keep the original stack trace information, the correct syntax is ‘throw’ without specifying an exception. In Throw ex, the original stack trace information will get override and you will lose the original exception stack trace.