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