Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Remove the need for the anonymous wrapper when a View Component has one parameter and the passed in argument is assignable to that parameter #5166

@danroth27

Description

@danroth27

For cases like:

public IViewComponentResult InvokeAsync(Person person) {}

Instead of this:

@await Component.InvokeAsync(SomeName, new { person = person })

You should be able to do this:

@await Component.InvokeAsync(SomeName, person)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions