GetAssemblyBuilder() public static méthode

public static GetAssemblyBuilder ( CompilerContext context ) : System.Reflection.Emit.AssemblyBuilder
context CompilerContext
Résultat System.Reflection.Emit.AssemblyBuilder
Exemple #1
0
        override public void Run()
        {
            if (_context.Errors.Count > 0)
            {
                return;
            }

            AssemblyBuilder builder = ContextAnnotations.GetAssemblyBuilder(Context);

            builder.Save(Path.GetFileName(Context.GeneratedAssemblyFileName));
        }
Exemple #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);
        }
Exemple #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);
            }
        }