1 .assembly extern mscorlib {}
3 .assembly 'field-access' {}
5 .class public FieldFail extends [mscorlib]System.Object {
7 .field private static string _sfield
9 .field private string _field
11 .method public specialname rtspecialname instance void .ctor()
14 call instance void [mscorlib]System.Object::.ctor()
21 .method static void read_sfield ()
23 ldsfld string FieldFail::_sfield
28 .method static void read_field ()
30 .locals (FieldFail ff)
32 newobj instance void FieldFail::.ctor()
35 ldfld string FieldFail::_field
40 .method static int32 Main ()
45 call void Test::read_sfield ()
47 } catch [mscorlib]System.FieldAccessException {
50 } catch [mscorlib]System.Exception {
57 call void Test::read_field ()
59 } catch [mscorlib]System.FieldAccessException {
62 } catch [mscorlib]System.Exception {
69 call void [mscorlib]System.Console::WriteLine(string)
75 call void [mscorlib]System.Console::WriteLine(string)