summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-09-15 15:10:57 +0200
committerJason Smith <jason.smith@xamarin.com>2016-09-26 13:31:41 -0700
commita32b417811710844a9a82b3ed12aa6263e3dd599 (patch)
treebd3c6ebeb772f8b0178d8ad675966568ac0b463d /Xamarin.Forms.Xaml
parent81ad9e83418ccfbf53ec59504f32d490144b9800 (diff)
downloadxamarin-forms-a32b417811710844a9a82b3ed12aa6263e3dd599.tar.gz
xamarin-forms-a32b417811710844a9a82b3ed12aa6263e3dd599.tar.bz2
xamarin-forms-a32b417811710844a9a82b3ed12aa6263e3dd599.zip
[XamlC] Compiled converters
Diffstat (limited to 'Xamarin.Forms.Xaml')
-rw-r--r--Xamarin.Forms.Xaml/CreateValuesVisitor.cs3
-rw-r--r--Xamarin.Forms.Xaml/XamlNode.cs3
2 files changed, 2 insertions, 4 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
{
diff --git a/Xamarin.Forms.Xaml/XamlNode.cs b/Xamarin.Forms.Xaml/XamlNode.cs
index f794428b..a19e7d5c 100644
--- a/Xamarin.Forms.Xaml/XamlNode.cs
+++ b/Xamarin.Forms.Xaml/XamlNode.cs
@@ -52,10 +52,9 @@ namespace Xamarin.Forms.Xaml
}
public string NamespaceUri { get; }
-
public string Name { get; }
-
public IList<XmlType> TypeArguments { get; private set; }
+
}
internal abstract class BaseNode : IXmlLineInfo, INode