Thursday, December 11, 2014

It appears that not all paths through a C# method must return the return type if they instead throw an exception.

This is handy and good to know. You don't have to immediately follow up the line which throws the exception with a silly line that returns something which will never get run.

No comments:

Post a Comment