DEV Community

jalpesh Vadgama
jalpesh Vadgama

Posted on

1

Youtube Video: Difference between Throw and Throw Exception in C#

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.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up