Boo.Lang.Compiler.Steps.ContextAnnotations.GetAssemblyBuilder C# (CSharp) Метод

GetAssemblyBuilder() публичный статический Метод

public static GetAssemblyBuilder ( CompilerContext context ) : System.Reflection.Emit.AssemblyBuilder
context CompilerContext
Результат System.Reflection.Emit.AssemblyBuilder
        public static System.Reflection.Emit.AssemblyBuilder GetAssemblyBuilder(CompilerContext context)
        {
            System.Reflection.Emit.AssemblyBuilder builder = (System.Reflection.Emit.AssemblyBuilder)context.Properties[AssemblyBuilderKey];
            if (null == builder)
            {
                throw CompilerErrorFactory.InvalidAssemblySetUp(context.CompileUnit);
            }
            return builder;
        }

Usage Example

Пример #1
0
        override public void Run()
        {
            if (_context.Errors.Count > 0)
            {
                return;
            }

            AssemblyBuilder builder = ContextAnnotations.GetAssemblyBuilder(Context);

            builder.Save(Path.GetFileName(Context.GeneratedAssemblyFileName));
        }
All Usage Examples Of Boo.Lang.Compiler.Steps.ContextAnnotations::GetAssemblyBuilder