fe777c5c82
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
26 lines
314 B
C#
26 lines
314 B
C#
using System;
|
|
|
|
class X
|
|
{
|
|
static int Foo ()
|
|
{
|
|
throw new ApplicationException ();
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
try {
|
|
var b = Foo () is object;
|
|
return 1;
|
|
} catch (ApplicationException) {
|
|
}
|
|
|
|
try {
|
|
var b = Foo () as object;
|
|
return 2;
|
|
} catch (ApplicationException) {
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
} |