Skip to content

Commit 68c75b0

Browse files
committed
Fix Blocks
1 parent 297a838 commit 68c75b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeJam.Blocks/Metadata/XmlAttributeReader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private static Dictionary<string, MetaTypeInfo> LoadStream(Stream xmlDocStream,
143143
.Select(
144144
t =>
145145
{
146-
var aname = t.Attribute("Name");
146+
var aname = t.Attribute(XName.Get("Name"));
147147

148148
if (aname == null)
149149
throw new MetadataException($"'{fileName}': Element 'Type' has to have 'Name' attribute.");
@@ -152,7 +152,7 @@ private static Dictionary<string, MetaTypeInfo> LoadStream(Stream xmlDocStream,
152152

153153
var members = t.Elements().Where(e => e.Name.LocalName == "Member").Select(m =>
154154
{
155-
var maname = m.Attribute("Name");
155+
var maname = m.Attribute(XName.Get("Name"));
156156

157157
if (maname == null)
158158
throw new MetadataException($"'{fileName}': Element <Type Name='{tname}'><Member /> has to have 'Name' attribute.");

0 commit comments

Comments
 (0)