diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2016-11-15 20:39:48 +0100 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-11-15 11:39:48 -0800 |
commit | a6bbed029c64d2d64b74eeb67e27a099abf70664 (patch) | |
tree | 551c3924c055e2d39592b3f1c726cca46924dd73 /Xamarin.Forms.Core/BindingBaseExtensions.cs | |
parent | 14e21dcebd4a706aaa5eed384b142957d84df002 (diff) | |
download | xamarin-forms-a6bbed029c64d2d64b74eeb67e27a099abf70664.tar.gz xamarin-forms-a6bbed029c64d2d64b74eeb67e27a099abf70664.tar.bz2 xamarin-forms-a6bbed029c64d2d64b74eeb67e27a099abf70664.zip |
[XamlC] TypedBindings, some tests, a compiler, ... (#489)
Diffstat (limited to 'Xamarin.Forms.Core/BindingBaseExtensions.cs')
-rw-r--r-- | Xamarin.Forms.Core/BindingBaseExtensions.cs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Xamarin.Forms.Core/BindingBaseExtensions.cs b/Xamarin.Forms.Core/BindingBaseExtensions.cs index a52c5cb1..5da40f23 100644 --- a/Xamarin.Forms.Core/BindingBaseExtensions.cs +++ b/Xamarin.Forms.Core/BindingBaseExtensions.cs @@ -1,16 +1,9 @@ -using System; - -namespace Xamarin.Forms +namespace Xamarin.Forms { - internal static class BindingBaseExtensions + static class BindingBaseExtensions { - internal static BindingMode GetRealizedMode(this BindingBase self, BindableProperty property) + public static BindingMode GetRealizedMode(this BindingBase self, BindableProperty property) { - if (self == null) - throw new ArgumentNullException("self"); - if (property == null) - throw new ArgumentNullException("property"); - return self.Mode != BindingMode.Default ? self.Mode : property.DefaultBindingMode; } } |