示例#1
0
        private void gen(CodeArg[] args)
        {
            switch (args[0].Value)
            {
            case (COMMAND_GEN_QQ):
            {
                push(InstructionUtils.RandomQQNumber());
            }
            break;

            case (COMMAND_GEN_PASSWORD):
            {
                push(InstructionUtils.RandomPassword());
            }
            break;

            case (COMMAND_GEN_TIMESTAMP):
            {
                push(InstructionUtils.GetTimestamp().ToString());
            }
            break;

            default: {
                throw new ArgumentException("不能生成这个:" + args[0].Value);
            }
            }
        }
 void GeneratePassword(StackStateMachine machine, Instruction instruction)
 {
     machine.runtimeStack.Add(InstructionUtils.RandomPassword());
 }