From 10122f5265b21a282ba00d0fbb696989d8a68942 Mon Sep 17 00:00:00 2001 From: mbdavid Date: Sun, 31 Jul 2016 20:22:14 -0300 Subject: [PATCH] fix parameter order --- LiteDB/Serializer/Mapper/BsonMapper.Serialize.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LiteDB/Serializer/Mapper/BsonMapper.Serialize.cs b/LiteDB/Serializer/Mapper/BsonMapper.Serialize.cs index 2a93c9285..f4d030bd9 100644 --- a/LiteDB/Serializer/Mapper/BsonMapper.Serialize.cs +++ b/LiteDB/Serializer/Mapper/BsonMapper.Serialize.cs @@ -29,7 +29,7 @@ public BsonDocument ToDocument(T entity) internal BsonValue Serialize(Type type, object obj, int depth) { - if (++depth > MAX_DEPTH) throw LiteException.DocumentMaxDepth(type, MAX_DEPTH); + if (++depth > MAX_DEPTH) throw LiteException.DocumentMaxDepth(MAX_DEPTH, type); if (obj == null) return BsonValue.Null;