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(); } } }