Merge branch '3.5.0'
authorSamantha Houts <samantha.houts@xamarin.com>
Fri, 14 Dec 2018 19:00:28 +0000 (11:00 -0800)
committerSamantha Houts <samantha.houts@xamarin.com>
Fri, 14 Dec 2018 19:00:28 +0000 (11:00 -0800)
1  2 
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
Xamarin.Forms.Core/XmlnsDefinitionAttribute.cs

@@@ -20,13 -21,8 +20,8 @@@ namespace Xamarin.Form
  
                public XmlnsDefinitionAttribute(string xmlNamespace, string clrNamespace)
                {
-                       if (xmlNamespace == null)
-                               throw new ArgumentNullException(nameof(xmlNamespace));
-                       if (clrNamespace == null)
-                               throw new ArgumentNullException(nameof(clrNamespace));
-                       ClrNamespace = clrNamespace;
-                       XmlNamespace = xmlNamespace;
+                       ClrNamespace = clrNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace));
+                       XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(clrNamespace));
                }
        }
 -}
 +}