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
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!
-
|
|
|
|
|
-
|
!
!
|
.assembly test{}
.method static void Main()
{
.entrypoint
.locals( class Bot b )
newobj instance void Bot::.ctor() stloc b
ldloc b ldstr "ngubot" stfld string Bot::_name
ldloc b ldfld string Bot::_name call void [mscorlib]System.Console::WriteLine( string )
ret
}
.class Bot
{
.field public string _name
.method public void .ctor()
{
ret
}
}
|
C#では・・・ :
1
2
3
4
5
6
7
8
9
10
11
|
-
|
|
|
!
-
|
!
|
void main()
{
Bot b = new Bot();
b._name = "ngubot";
Console.WriteLine( b._name );
}
class Bot
{
public string _name;
}
|
参照 †
|
Last-modified: Mon, 27 Jul 2009 03:06:22 JST