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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay