Exemplo n.º 1
0
                public override void Emit (CodeGen code_gen, MethodDef meth,
					   PEAPI.CILInstructions cil)
                {
                        PEAPI.CILLabel from = block.GetFromLabel (code_gen, meth);
                        PEAPI.CILLabel to = block.GetToLabel (code_gen, meth);
                        PEAPI.TryBlock try_block = new PEAPI.TryBlock (from, to);

                        foreach (ISehClause clause in clause_list)
                                try_block.AddHandler (clause.Resolve (code_gen, meth));
			
                        cil.AddTryBlock (try_block);
                }
Exemplo n.º 2
0
        public override void Emit(CodeGen code_gen, MethodDef meth,
                                  PEAPI.CILInstructions cil)
        {
            PEAPI.CILLabel from      = block.GetFromLabel(code_gen, meth);
            PEAPI.CILLabel to        = block.GetToLabel(code_gen, meth);
            PEAPI.TryBlock try_block = new PEAPI.TryBlock(from, to);

            foreach (ISehClause clause in clause_list)
            {
                try_block.AddHandler(clause.Resolve(code_gen, meth));
            }

            cil.AddTryBlock(try_block);
        }