I have a static delegate command. I'm passing a bool to the constructor. However, it is throwing a runtime exception.
public static class myViewModel
{
public static ICommand myCommand {get; private set;}
static myViewModel
{
//If I change the bool to Object, or to Collection type, no exception assuming that I change myMethod parameter as well to the same type.
myCommand = new DelegateCommand<bool>(myMethod);
}
private static void myMethod (bool myBoolean)
{
//To Do
}
}
It is no brainer, I should have included the `exception` . Will keep that in mind.
Thank you – John Mar 24 '17 at 13:20