Quantcast
Channel: MVVM Light Toolkit
Viewing all articles
Browse latest Browse all 1826

Edited Issue: In RelayCommandGeneric CanExecute() condition paramter == null used twice [7725]

$
0
0
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;



Viewing all articles
Browse latest Browse all 1826

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>