diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2016-12-12 10:35:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 10:35:42 +0100 |
commit | f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7 (patch) | |
tree | 57536ced5b4810c2f415a03d0fb91387cd9556c4 /Xamarin.Forms.Core | |
parent | 1c796c3a9edfa6a5f16689e5e7ea775c8ef21339 (diff) | |
download | xamarin-forms-f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7.tar.gz xamarin-forms-f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7.tar.bz2 xamarin-forms-f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7.zip |
[XamlC] compile ThicknessTypeConverter (#603)
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r-- | Xamarin.Forms.Core/ThicknessTypeConverter.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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 |