In GalaSoft.MvvmLight.Platform (NET45) project
in RelayCommandGeneric.cs file
in public bool CanExecute(object parameter) function
condition if(paramter == null) used twice
I think, second time instead
if (parameter == null || parameter is T)
it should be
if (parameter != null || parameter is T)
because we already used condition paramter == null
and it will never get to it if parramter == null;
in RelayCommandGeneric.cs file
in public bool CanExecute(object parameter) function
condition if(paramter == null) used twice
I think, second time instead
if (parameter == null || parameter is T)
it should be
if (parameter != null || parameter is T)
because we already used condition paramter == null
and it will never get to it if parramter == null;