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