Exemplo n.º 1
0
        public static IValue BreakExecution(IExecutionContext ctx, IList<IArgument> arguments)
        {
            var args = CommandUtilities.ManageArguments(arguments)
                .Between(0, 1)
                .Results();

            IValue result = args.Length == 0 ? GenericValue<object>.Default : args[0];

            ctx.BreakExecution(result);
            return result;
        }