Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you force VS to make you handle exceptions?

In Eclipse, java will force you to have a try catch block for functions that throw exceptions. Can you get VS to do the same?

like image 895
SamFisher83 Avatar asked Dec 01 '22 19:12

SamFisher83


1 Answers

This is not a distinction between Eclipse and Visual Studio, but between Java and C#. Java has checked exceptions which have to be caught; C# doesn't.

like image 112
Stuart Golodetz Avatar answered Dec 21 '22 10:12

Stuart Golodetz