Merge pull request #4615 from alexanderkyte/string_error_handling
[mono.git] / mcs / class / Microsoft.Build / Microsoft.Build.Construction / ProjectItemDefinitionElement.cs
index 283e8b700cfcc0d0f87621e7922c5544e7f0febc..497f631a07da099eb6494b5e381a66fd3ba9724d 100644 (file)
@@ -29,6 +29,7 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
+using System.Xml;
 using Microsoft.Build.Internal;
 
 namespace Microsoft.Build.Construction
@@ -56,9 +57,9 @@ namespace Microsoft.Build.Construction
                 internal override string XmlName {
                         get { return ItemType; }
                 }
-                internal override ProjectElement LoadChildElement (string name)
+                internal override ProjectElement LoadChildElement (XmlReader reader)
                 {
-                        return AddMetadata (name, null);
+                        return AddMetadata (reader.LocalName, null);
                 }
         }
 }