summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-12-30 17:58:48 +0100
committerE.Z. Hart <hartez@users.noreply.github.com>2016-12-30 09:58:48 -0700
commit32dab1d3c7641688e9435be22297e092bcdb5ee6 (patch)
tree46679ada9e2610ea05aa68810a6a85a375e1955b /Xamarin.Forms.Xaml
parentefc1e93f8156df8e84605b118a2f455b8dcf36ab (diff)
downloadxamarin-forms-32dab1d3c7641688e9435be22297e092bcdb5ee6.tar.gz
xamarin-forms-32dab1d3c7641688e9435be22297e092bcdb5ee6.tar.bz2
xamarin-forms-32dab1d3c7641688e9435be22297e092bcdb5ee6.zip
[XamlC] detect duplicate x:Name at compile time (#655)
* [XamlC] detect duplicate x:Name at compile time * invoking methods with the right arguments produces better results
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);
}
}