GetAssemblyBuilder() 공개 정적인 메소드

public static GetAssemblyBuilder ( CompilerContext context ) : System.Reflection.Emit.AssemblyBuilder
context CompilerContext
리턴 System.Reflection.Emit.AssemblyBuilder
예제 #1
0
        override public void Run()
        {
            if (_context.Errors.Count > 0)
            {
                return;
            }

            AssemblyBuilder builder = ContextAnnotations.GetAssemblyBuilder(Context);

            builder.Save(Path.GetFileName(Context.GeneratedAssemblyFileName));
        }
예제 #2
0
파일: SaveAssembly.cs 프로젝트: watsug/boo
        override public void Run()
        {
            if (Errors.Count > 0)
            {
                return;
            }

            var builder  = ContextAnnotations.GetAssemblyBuilder(Context);
            var filename = Path.GetFileName(Context.GeneratedAssemblyFileName);

            Save(builder, filename);
        }
예제 #3
0
        override public void Run()
        {
            if (Errors.Count > 0)
            {
                return;
            }

            var builder  = ContextAnnotations.GetAssemblyBuilder(Context);
            var filename = Path.GetFileName(Context.GeneratedAssemblyFileName);

            Save(builder, filename);

            var resFilename = (string)Context.Properties["ResFileName"];

            if (resFilename != null)
            {
                File.Delete(resFilename);
            }
        }