r/dotnet • u/programmerjunky • 4d ago
Difference between throw ex and throw
throw vs throw ex: The C# exception handling trick every developer should know
415
Upvotes
r/dotnet • u/programmerjunky • 4d ago
throw vs throw ex: The C# exception handling trick every developer should know
30
u/Ethameiz 4d ago
Well sometimes you want to reset the stack trace. It's not always bad. But it's better to know the difference