dotnet icon indicating copy to clipboard operation
dotnet copied to clipboard

Setting the default value for the parameter of ExecuteAsync(object? parameter) to equal null

Open alraseensaad opened this issue 8 months ago • 0 comments

Overview

to set the parameter default value to null

Task ExecuteAsync(object? parameter);

to not require setting null if there is no parameters

API breakdown

Task ExecuteAsync(object? parameter == null);

Usage example

instead of setting null

SaveCommand.ExecuteAsync(null);

you can use it like

SaveCommand.ExecuteAsync();

Breaking change?

I'm not sure

Alternatives

you show set null if there is no parameters

SaveCommand.ExecuteAsync(null);

Additional context

No response

Help us help you

Yes, but only if others can assist

alraseensaad avatar Jun 21 '25 14:06 alraseensaad