すべてを展開すべてを収束
  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
 
 
 
 
 
-
|
|
|
|
|
|
|
!
 
 
 
-
|
-
|
|
|
|
|
!
!
 
//アセンブリマニフェスト
.assembly test{}
 
// エントリポイントとなる関数
.method static void Main()
{
    // エントリポイントの宣言
    .entrypoint
 
    // ☆ Botクラスの静的メンバ関数talk()を呼び出す
    call void Bot::talk()
 
    ret
}
 
// クラスの定義
.class Bot
{
    .method public static void talk()
    {
        // コンソールにhelloと表示
            ldstr "hello"
        call    void [mscorlib]System.Console::WriteLine( string ) // Consoleクラスの静的メンバ関数WriteLine()を呼び出す
 
        ret
    }
}
 

C#では・・・ :

すべてを展開すべてを収束
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 
-
|
!
 
 
-
|
-
|
!
!
void main()
{
    Bot.talk();
}
 
class Bot
{
    public static void talk()
    {
        System.Console.WriteLine( "hello" );
    }
}

トップ 編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード 新規 一覧 単語検索 最終更新 リンク元 ヘルプ 最終更新のRSS xenowire
Last-modified: Mon, 27 Jul 2009 03:06:22 JST