What's the purpose of the 'ValueType' property on IBsonSerializer, MongoDB C# driver 2.2.2

Viewed 589

I'm implementing a custom serializer by implementing the interface: IBsonSerializer defined on MongoDB C# Driver version 2.2.2.

The methods Serialize and Deserialize are clear, but there's a property:

Type ValueType { get; }

The documentation page on mongodb.org for IBsonSerializer only says: "Gets the type of the value." The thorough API reference on mongodb.github.io has no reference to this property at all.

What's the purpose of this getter?

1 Answers
Related