Exemple #1
0
        /// <inheritdoc/>
        public IEmitter DefineLabel(string labelName, out ILabel label)
        {
            var actualLabel = this.ilGen.DefineLabel();

            label = new LabelAdapter(labelName, actualLabel);
            return(this);
        }
Exemple #2
0
        /// <inheritdoc/>
        public IEmitter BeginExceptionBlock(out ILabel label)
        {
            var actualLabel = this.ilGen.BeginExceptionBlock();

            label = new LabelAdapter(Guid.NewGuid().ToString(), actualLabel);
            return(this);
        }
Exemple #3
0
        /// <inheritdoc/>
        public IEmitter BeginExceptionBlock(out ILabel label)
        {
            this.emitter?.BeginExceptionBlock(out label);

            this.OutputILOffset();
            label = new LabelAdapter(Guid.NewGuid().ToString());
            this.debugOutput.WriteLineColor(ConsoleColor.Green, "\tBeginExceptionBlock [{0}]", label.Name);
            return(this);
        }