Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

Commit

Permalink
Revert "Also ignore whitespaces & non-content nodes while processing …
Browse files Browse the repository at this point in the history
…XML lists"

This reverts commit 12dcffb.
  • Loading branch information
nicolaiarocci committed May 31, 2019
1 parent 2a605c7 commit 345bd6e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions BaseClassSerializable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,19 +467,18 @@ private static void ReadXmlList(object propertyValue, Type propertyType, string
var bo = Activator.CreateInstance(argumentType);
((BaseClassSerializable)bo).ReadXml(r);
add.Invoke(propertyValue, new[] { bo });
r.MoveToContent();
continue;
}

if (argumentType == typeof(string))
{
add.Invoke(propertyValue, new[] { r.ReadElementContentAsString() });
r.MoveToContent();
continue;
}

if (argumentType == typeof(int))
{
add.Invoke(propertyValue, new[] { r.ReadElementContentAs(argumentType, null) });
r.MoveToContent();
}
}
}
Expand Down

0 comments on commit 345bd6e

Please # to comment.