Skip to content

Blazor DynamicComponent example error #26555

@alikavoosi1001

Description

@alikavoosi1001

I want to use DynamicComponent to add a preDefiend component dynamiclly to razor page when a button clicked.
when i build project this error appeared:
error: CS1662 Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions