We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f495c commit 905307fCopy full SHA for 905307f
Microsoft.Toolkit.Mvvm/Input/AsyncRelayCommand{T}.cs
@@ -131,7 +131,7 @@ public bool CanExecute(T? parameter)
131
[MethodImpl(MethodImplOptions.AggressiveInlining)]
132
public bool CanExecute(object? parameter)
133
{
134
- if (typeof(T).IsValueType &&
+ if (default(T) is not null &&
135
parameter is null &&
136
this.canExecute is null)
137
Microsoft.Toolkit.Mvvm/Input/RelayCommand{T}.cs
@@ -76,7 +76,7 @@ public bool CanExecute(T? parameter)
76
/// <inheritdoc/>
77
78
79
80
81
82
0 commit comments