In this video, We are going to see the difference between Throw and Throw an exception in C#. In this video, I am also going to explain what are the best practices for using throw in C#.
Lots of people make these mistakes and aim of this video to clarify the confusion between Throw and Throw(ex).
Source Code for this video is available on - https://github.com/JalpeshVadgama/ThrowBestPractice
So as a best practice you should always use Throw instead of Throw(ex)
If you like this video and wanted to see a similar kind of video then, please subscribe to my youtube channel at - http://bit.ly/codewithjv.
Also, Do let me know what more content you wanted to see in C# and DotNet.
Top comments (0)