0
다음 코드는 컴파일러에서 CanExecute 메서드의 반환 형식을 결정할 수 없기 때문에 컴파일되지 않습니다. 누군가 잘못 된 것에 관해 나를 도울 수 있습니까?ICommand _canExecute problem
는class ViewCommand : ICommand
{
#region ICommand Members
public delegate Predicate<object> _canExecute(object param);
private ICommand _Execute;
_canExecute exe;
public bool CanExecute(object parameter)
{
return exe == null ? true : exe(parameter); // <-- Error no implicit conversion between Predicate<object> and bool
}
... // more code
}
지금, 당신의 마지막을했다,하지만? –
_canExecute에 할당 할 조건부 정의는 무엇입니까? –
개인 술어