GetAssemblyBuilder() public static method

public static GetAssemblyBuilder ( CompilerContext context ) : System.Reflection.Emit.AssemblyBuilder
context CompilerContext
return 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
        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);
            }
        }