Skip to content

[Correctness] IAsyncCommand.ExecuteAsync — Non-nullable parameter vs AsyncCommand nullable parameter #683

@Christophe-Rogiers

Description

@Christophe-Rogiers

Severity: Warning

File: src/Servy.UI/Commands/IAsyncCommand.cs
Line: 16

Description:
IAsyncCommand.ExecuteAsync(object parameter) (non-nullable) vs AsyncCommand.ExecuteAsync(object? parameter) (nullable). With #nullable enable in AsyncCommand.cs, callers relying on the interface cannot safely pass null without a nullable annotation mismatch warning.

Suggested fix:
Change interface to Task ExecuteAsync(object? parameter).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions