public class MyBsonMapper : BsonMapper
{
public override object ToObject(Type type, BsonDocument doc)
{
/// this code never get invoked
throw new NotSupportedException();
}
public override T ToObject<T>(BsonDocument doc)
{
/// this code never get invoked
throw new NotSupportedException();
}
}
Version LiteDB 5.0.10
Describe the bug
ToObject Never get invoked
Code to Reproduce https://github.com/humhei/LiteDBCustomBsonMapper
Expected behavior ToObject get invoked
Screenshots/Stacktrace Exit with 0, exception should threw but here not