Don't run Command CanExecute on incorrect inherited binding context type (#572)
authorE.Z. Hart <hartez@users.noreply.github.com>
Thu, 1 Dec 2016 21:15:17 +0000 (14:15 -0700)
committerStephane Delcroix <stephane@delcroix.org>
Thu, 1 Dec 2016 21:15:17 +0000 (22:15 +0100)
commit46c25a2edbf257153d7bb33d2ac3997a3718e3ee
tree92209a25a152c11af33684c1e1933514ac4c407a
parent3d85653f270854b4aab82e45e6e58afb760feb85
Don't run Command CanExecute on incorrect inherited binding context type (#572)

* Allow Command CanExecute to recover when run on inherited bindingcontext

* Make exception handler more generic

* Checking types in Command delegates to avoid exception in the first place

* Adding type chekc to other Command constructor

* Use nameof for ArgumentNullExceptions

* Add unit tests for null parameters, handle value types and Nullable<T>
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla47971.cs [new file with mode: 0644]
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
Xamarin.Forms.Core.UnitTests/CommandTests.cs
Xamarin.Forms.Core/Command.cs