From a6bbed029c64d2d64b74eeb67e27a099abf70664 Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Tue, 15 Nov 2016 20:39:48 +0100 Subject: [XamlC] TypedBindings, some tests, a compiler, ... (#489) --- Xamarin.Forms.Core/BindingBaseExtensions.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'Xamarin.Forms.Core/BindingBaseExtensions.cs') 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; } } -- cgit v1.2.3