diff --git a/LiteDB/Client/Mapper/BsonMapper.Deserialize.cs b/LiteDB/Client/Mapper/BsonMapper.Deserialize.cs index fd68de9e6..804090823 100644 --- a/LiteDB/Client/Mapper/BsonMapper.Deserialize.cs +++ b/LiteDB/Client/Mapper/BsonMapper.Deserialize.cs @@ -258,7 +258,7 @@ private object DeserializeList(Type type, BsonArray value) } else { - var addMethod = type.GetMethod("Add"); + var addMethod = type.GetMethod("Add", new Type[] { itemType }); foreach (BsonValue item in value) { @@ -317,4 +317,4 @@ private object DeserializeAnonymousType(Type type, BsonDocument value) return obj; } } -} \ No newline at end of file +}