Github user FlorianHockmann commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/817#discussion_r175086378
  
    --- Diff: gremlin-dotnet/src/Gremlin.Net/Process/Traversal/P.cs ---
    @@ -148,12 +154,24 @@ public static P Test(params object[] args)
     
             public static P Within(params object[] args)
             {
    -            return new P("within", args);
    +            if (args.Length == 1 && args[0] is ICollection<object>)
    +                return new P("within", 
ToGenericArray((ICollection<object>) args[0]));
    --- End diff --
    
    This `(ICollection<object>) ` cast can even be removed like this:
    ```cs
    if (args.Length == 1 && args[0] is ICollection<object> collection)
        return new P("without", ToGenericArray(collection));
    ```


---

Reply via email to