summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Xaml')
-rw-r--r--Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs b/Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs
index 7985cff1..a7da3b98 100644
--- a/Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs
+++ b/Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs
@@ -39,8 +39,7 @@ namespace Xamarin.Forms.Xaml
{
if (ae.ParamName != "name")
throw ae;
- throw new XamlParseException(
- string.Format("An element with the name \"{0}\" already exists in this NameScope", (string)node.Value), node);
+ throw new XamlParseException($"An element with the name \"{(string)node.Value}\" already exists in this NameScope", node);
}
}