summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/ThicknessTypeConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/ThicknessTypeConverter.cs')
-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 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