blob: 06bf6ac12cdba44e09bbe7852dd17fb0187afd0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
.assembly extern mscorlib
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
.ver 2:0:0:0
}
.assembly moduleCctor {}
.assembly extern FieldTypes
{
.publickeytoken = (C0 30 5C 36 38 0B A4 29 ) // .0\68..)
.ver 0:0:0:0
}
.method private hidebysig specialname rtspecialname static
void .cctor() cil managed
{
.maxstack 8
nop
ldsfld int32 IntHolder::val
ldc.i4.1
add
stsfld int32 IntHolder::val
// ldstr "modCctor.txt"
// ldstr "inside .cctor"
// call void [mscorlib]System.IO.File::WriteAllText(string,
// string)
ret
} // end of method Foo::.cctor
// =============== CLASS MEMBERS DECLARATION ===================
.class public auto ansi beforefieldinit IntHolder
extends [mscorlib]System.Object
{
// Fields
.field public static int32 val
// Methods
.method public hidebysig specialname rtspecialname
instance void .ctor () cil managed
{
// Method begins at RVA 0x2050
// Code size 8 (0x8)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: nop
IL_0007: ret
} // end of method IntHolder::.ctor
.method private hidebysig specialname rtspecialname static
void .cctor () cil managed
{
// Method begins at RVA 0x2059
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldc.i4.0
IL_0001: stsfld int32 IntHolder::val
IL_0006: ret
} // end of method IntHolder::.cctor
.method public hidebysig static
void Assign (
int32 arg
) cil managed
{
// Method begins at RVA 0x2078
// Code size 8 (0x8)
.maxstack 8
IL_0000: nop
IL_0001: ldarg.0
IL_0002: stsfld int32 IntHolder::val
IL_0007: ret
} // end of method IntHolder::Assign
.method public hidebysig static
void Check (
int32 arg
) cil managed
{
// Method begins at RVA 0x2050
// Code size 28 (0x1c)
.maxstack 2
.locals init (
[0] bool
)
IL_0000: nop
IL_0001: ldsfld int32 IntHolder::val
IL_0006: ldarg.0
IL_0007: ceq
IL_0009: ldc.i4.0
IL_000a: ceq
IL_000c: stloc.0
IL_000d: ldloc.0
IL_000e: brfalse.s IL_001b
IL_0010: ldstr "Mod Ctor did not functon correctly"
IL_0015: newobj instance void [mscorlib]System.Exception::.ctor(string)
IL_001a: throw
IL_001b: ret
} // end of method IntHolder::Check
} // end of class IntHolder
|