I split this question out, because it's separate from your first. Please keep your questions to one question per post.
It means that any exceptions (errors) that happen within the "try" block will be "caught", that is, they won't crash the whole application. Instead of crashing the application, the method returns false instead of true. The general layout is this:
public bool SomethingDangerous()
{
try
{
// do something dangerous
}
catch (Exception ex)
{
// an error occurred (was "thrown") and the instructions being executed move to here.
return false;
// from here, you can also use the C# "throw" keyword which will cause the exception to be truly "thrown".
}
return true;
}
See
this link for more information.
Coding Light - Illuminated Ideas and Algorithms in SoftwareCoding Light Wiki •
LinkedIn •
ForumsBrowser