private static DebuggerScriptResultList Memory(List <string> args, DebuggerScriptResultList results) { int arg0Value; bool hasType = !int.TryParse(args[0], out arg0Value); switch (args.Count) { case 1: results = results.Memory(arg0Value); break; case 2: if (hasType) { results = results.Memory(args[0], int.Parse(args[1])); } else { results = results.Memory(arg0Value, int.Parse(args[1])); } break; case 3: results = results.Memory(args[0], int.Parse(args[1]), int.Parse(args[2])); break; } return(results); }