summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml/CreateValuesVisitor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Xaml/CreateValuesVisitor.cs')
-rw-r--r--Xamarin.Forms.Xaml/CreateValuesVisitor.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Xamarin.Forms.Xaml/CreateValuesVisitor.cs b/Xamarin.Forms.Xaml/CreateValuesVisitor.cs
index d6848033..04cd62cb 100644
--- a/Xamarin.Forms.Xaml/CreateValuesVisitor.cs
+++ b/Xamarin.Forms.Xaml/CreateValuesVisitor.cs
@@ -74,8 +74,7 @@ namespace Xamarin.Forms.Xaml
else if (!type.GetTypeInfo().DeclaredConstructors.Any(ci => ci.IsPublic && ci.GetParameters().Length == 0) &&
!ValidateCtorArguments(type, node, out ctorargname))
{
- throw new XamlParseException(
- String.Format("The Property {0} is required to create a {1} object.", ctorargname, type.FullName), node);
+ throw new XamlParseException($"The Property {ctorargname} is required to create a {type.FullName} object.", node);
}
else
{