a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
68 lines
505 B
C#
68 lines
505 B
C#
using System;
|
|
|
|
class Test
|
|
{
|
|
public static void Main ()
|
|
{
|
|
}
|
|
|
|
void TryCatch_1 ()
|
|
{
|
|
try
|
|
{
|
|
}
|
|
catch
|
|
{
|
|
}
|
|
}
|
|
|
|
void TryCatch_2 ()
|
|
{
|
|
try
|
|
{
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
e = null;
|
|
}
|
|
}
|
|
|
|
void TryCatch_3 ()
|
|
{
|
|
try
|
|
{
|
|
}
|
|
catch (ArgumentException e)
|
|
{
|
|
e = null;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
|
|
void TryFinally_1 ()
|
|
{
|
|
try
|
|
{
|
|
}
|
|
finally
|
|
{
|
|
}
|
|
}
|
|
|
|
void TryFinally_2 ()
|
|
{
|
|
try
|
|
{
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
e = null;
|
|
}
|
|
finally
|
|
{
|
|
}
|
|
}
|
|
} |