Investigate SerializerFinderVisitor.DeduceCreateMethodSerializers why it iterates arguments started with index 1

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: LINQ
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      The method part which is processing Tuple.Create method call has a loop that indexes expression.Arguments[i] while iterating i = 1..Count (inclusive). MethodCallExpression.Arguments is zero-based, so this will throw ArgumentOutOfRangeException when i == expression.Arguments.Count. Iterate 0..Count-1 (and adjust the tuple item index passed to GetItemSerializer) to avoid runtime failures when creating tuple serializers.

      Need to investigate and fix the possible issue.

            Assignee:
            Unassigned
            Reporter:
            Oleksandr Poliakov
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: