I know this is a noob question however in a c# application what does the following do
{...}
at the end of catch statement.
notrosh
I know this is a noob question however in a c# application what does the following do
{...}
at the end of catch statement.
notrosh
The following coded will catch all exceptions and then do nothing, you should always do something when catching an exception, but there are always special cases.
Code:try { // Try something }catch { // Catch all exceptions and do nothing... }
C# - .NET 1.1 / .NET 2.0
"Take everything I say with a grain of salt, sometimes I'm right, sometimes I'm wrong but in the end we've both learned something."
_____________________
Regular Expressions Library
Connection String
API Functions
Database FAQ & Tutorial
you can also do a
try
{
}
catch (Exception ex)
{
MessageBox.Show("your error message goes here" + Environment.NewLine + ex.Message);
Console.WriteLine(ex.ToString());
}