From f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7 Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Mon, 12 Dec 2016 10:35:42 +0100 Subject: [XamlC] compile ThicknessTypeConverter (#603) --- Xamarin.Forms.Core/ThicknessTypeConverter.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Xamarin.Forms.Core/ThicknessTypeConverter.cs') diff --git a/Xamarin.Forms.Core/ThicknessTypeConverter.cs b/Xamarin.Forms.Core/ThicknessTypeConverter.cs index 5e79d25c..fa60267a 100644 --- a/Xamarin.Forms.Core/ThicknessTypeConverter.cs +++ b/Xamarin.Forms.Core/ThicknessTypeConverter.cs @@ -3,6 +3,7 @@ using System.Globalization; namespace Xamarin.Forms { + [Xaml.ProvideCompiled("Xamarin.Forms.Core.XamlC.ThicknessTypeConverter")] public class ThicknessTypeConverter : TypeConverter { public override object ConvertFromInvariantString(string value) @@ -29,7 +30,7 @@ namespace Xamarin.Forms } } - throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(Thickness))); + throw new InvalidOperationException($"Cannot convert \"{value}\" into {typeof(Thickness)}"); } } } \ No newline at end of file -- cgit v1.2.3