public static void Method(this ISerializedGremlinQueryAssembler assembler, string methodName, object parameter1, object parameter2, Action <object> recurse)
        {
            assembler.OpenMethod(methodName);
            {
                assembler.StartParameter();
                recurse(parameter1);
                assembler.EndParameter();

                assembler.StartParameter();
                recurse(parameter2);
                assembler.EndParameter();
            }
            assembler.CloseMethod();
        }
 public static void Method(this ISerializedGremlinQueryAssembler assembler, string methodName, IEnumerable <object> parameters, Action <object> recurse)
 {
     assembler.OpenMethod(methodName);
     {
         foreach (var parameter in parameters)
         {
             assembler.StartParameter();
             recurse(parameter);
             assembler.EndParameter();
         }
     }
     assembler.CloseMethod();
 }