Skip to content

Custome extension and multiple arguments #479

Description

@gregoriusus

I am using latest version 3.6.0. I use it in NET Core Web Api project and I register some custom extension.

It works, if I only pass one object as argument, but not if I pass multiple arguments.

It iterates multiple times, but it always evaluate first argument that is passed, like first argument is passed twice.

Activity

  1. axunonb commented on May 15, 2025

    @axunonb
    Member

    Is it an ISource or an IFormatter extension? Generally, extensions are invoked once per argument, where the value is passed with ISelectorInfo.CurrentValue or IFormattingInfo.CurrentValue respectively.
    We can have a look if you'll submit a reproducer.

  2. gregoriusus commented on May 16, 2025

    @gregoriusus
    Author

    I am using ISource. I tested with 2 arguments and extension has been called twice, but debug showed same argument

  3. axunonb commented on May 16, 2025

    @axunonb
    Member

    Unless you submit a reproducer, it's impossible to comment.

  4. gregoriusus commented on May 18, 2025

    @gregoriusus
    Author

    Which online tool to use to make an example with c#?

  5. locked and limited conversation to collaborators on May 19, 2025
  6. converted this issue into a discussion #480 on May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions