2011-11-02 3 views

답변

3

예.

나는 IL 몰라,하지만 난 후 위원장 파일을 생성하는 monodis을 사용하고 난 .module 메인 .exe 선 후이 코드를 추가 C#

using System; 
public class Program { 
    public static void Main(string[] args) { 
     Console.WriteLine("Main"); 
    } 
} 

을이를 썼다.

.method assembly specialname rtspecialname static 
    void .cctor() cil managed 
{ 
    .maxstack 8 
    IL_0000: ldstr "module method" 
    IL_0005: call void class [mscorlib]System.Console::WriteLine(string) 
    IL_000a: ret 
} 

출력이 예상 될 때 출력됩니다.

module method 
Main 

ilasm과 런타임 모두 지원합니다.

+1

+1 나는 당신이 주변의 가장 활동적인 3 살짜리 회원 중 한 사람이라는 것을 깨닫기 전까지 "거의 볼 수있어서 좋았다"고 말할 것입니다. :-P – Noldorin

+0

@ Noldorin 이런, 고마워. :) – jrwren

+1

예. 그러나 어쨌든 좋은 대답! 특히 Simon이 일리노이 전문가라고 생각하는 것은 어떤 사람들의 마음입니다. ;-) – Noldorin

관련 문제