Goto() 공개 메소드

public Goto ( int labelIndex, object value ) : int
labelIndex int
value object
리턴 int
예제 #1
0
        public override int Run(InterpretedFrame frame) {
            // Are we jumping out of catch/finally while aborting the current thread?
            Interpreter.AbortThreadIfRequested(frame, _labelIndex);

            // goto the target label or the current finally continuation:
            return frame.Goto(_labelIndex, _hasValue ? frame.Pop() : Interpreter.NoValue);
        }
예제 #2
0
 internal int GotoHandler(InterpretedFrame frame, object exception, out ExceptionHandler handler) {
     handler = GetBestHandler(frame.InstructionIndex, exception.GetType());
     if (handler == null) {
         return frame.Goto(ReturnAndRethrowLabelIndex, Interpreter.NoValue);
     } else {
         return frame.Goto(handler.LabelIndex, exception);
     }
 }