From 345bd6e1637ab80cd46dd65a673a52993218bc87 Mon Sep 17 00:00:00 2001 From: Nicola Iarocci Date: Fri, 31 May 2019 16:18:50 +0200 Subject: [PATCH] Revert "Also ignore whitespaces & non-content nodes while processing XML lists" This reverts commit 12dcffba9514dba97d4d6e3846c96c027d5bfe2e. --- BaseClassSerializable.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BaseClassSerializable.cs b/BaseClassSerializable.cs index b57f3da..da2687b 100644 --- a/BaseClassSerializable.cs +++ b/BaseClassSerializable.cs @@ -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(); } } }