Skip to content

Commit

Permalink
Make changes as discussed
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraser Greenroyd committed Aug 30, 2023
1 parent 389388d commit 6429a21
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Serialiser_Engine/Compute/Deserialise/List.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ private static List<T> DeserialiseList<T>(this BsonValue bson, List<T> value, st
value = new List<T>();

foreach (BsonValue item in bson.AsBsonArray)
{
value.Add((T)item.IDeserialise(typeof(T), null, version, isUpgraded));
}

return value;
}
Expand All @@ -73,9 +71,7 @@ private static List<List<T>> DeserialiseNestedList<T>(this BsonValue bson, List<
value = new List<List<T>>();

foreach (BsonValue item in bson.AsBsonArray)
{
value.Add((List<T>)item.IDeserialise(typeof(List<T>), null, version, isUpgraded));
}
value.Add((List<T>)item.DeserialiseList(new List<T>(), version, isUpgraded));

return value;
}
Expand Down

0 comments on commit 6429a21

Please sign in to comment.