private static bool Sync(Interpreter interpreter, Source source, Stringe tagname, Argument[] args) { var typeStr = args[1].GetString(); SyncType type; if (!Enum.TryParse(typeStr, true, out type)) { throw new RantException(source, tagname, "Invalid synchronizer type: '" + typeStr + "'"); } interpreter.Sync(args[0].GetString(), type); return(false); }