概要 †
カレントインスタンスを参照します
書式 †
ldarg.0
または
ldarg 0
カレントインスタンスのメンバ関数を呼び出してみます
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
|
-
|
|
|
|
|
|
|
|
!
-
|
|
-
|
|
|
|
|
!
|
|
-
|
|
|
|
|
!
!
|
.assembly test{}
.method static void Main()
{
.entrypoint
newobj instance void Bot::.ctor() pop
ret
}
.class Bot
{
.method public void .ctor()
{
ldarg.0 call instance void Bot::talk()
ret
}
.method public void talk()
{
ldstr "hello" call void [mscorlib]System.Console::WriteLine( string )
ret
}
}
|
C#では・・・ :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
-
|
!
-
|
-
|
!
|
|
-
|
!
!
|
void main()
{
new Bot();
}
class Bot
{
public Bot()
{
this.talk();
}
public void talk()
{
System.Console.WriteLine("hello");
}
}
|
参照 †
|
Last-modified: Mon, 27 Jul 2009 03:06:21 JST