Back to Browse

Difference Between throw and throw ex in C# | throw vs throw ex in C#

1.2K views
Feb 19, 2022
7:52

Difference Between Throw and Throw ex in C# | Throw vs Throw ex in C# throw: 1. throw is used to throw a current exception 2. throw does not reset stack trace and you will get information about the original exception. throw ex : 1. throw(ex) mostly used to create a wrapper of exception 2. throw(ex) will reset your stack trace so the error will appear from the line where throw(ex) written  #ThrowVSThrowexinC #C #InterviewQuestionandAnswers

Download

0 formats

No download links available.

Difference Between throw and throw ex in C# | throw vs throw ex in C# | NatokHD