C# How to ignore unknown values during deserialization

Hi,

is there any way to tell the BsonSerializer to ignore any element (serialize it as null) with an unknown discriminator value. The value in the discriminator points to a type that is not yet implemented.

Regards

2 Likes