summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-12-12 09:35:42 (GMT)
committerGitHub <noreply@github.com>2016-12-12 09:35:42 (GMT)
commitf0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7 (patch)
tree57536ced5b4810c2f415a03d0fb91387cd9556c4 /Xamarin.Forms.Core
parent1c796c3a9edfa6a5f16689e5e7ea775c8ef21339 (diff)
downloadxamarin-forms-f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7.zip
xamarin-forms-f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7.tar.gz
xamarin-forms-f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7.tar.bz2
[XamlC] compile ThicknessTypeConverter (#603)
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/ThicknessTypeConverter.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/ThicknessTypeConverter.cs b/Xamarin.Forms.Core/ThicknessTypeConverter.cs
index 5e79d25..fa60267 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