The new methods are there to support LINQ queries. They are mentioned in
the 1.4 release notes:
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20...
If you want to write LINQ queries against values serialized by your custom
serializers you should implement the new methods. Otherwise you can add
stubbed implementations that throw NotImplementedException or
NotSupportedExceptions.
Consider deriving your custom serializers from BsonBaseSerializer, which
provides default implementations of the new methods.
These interfaces are changing yet again in 1.5 (sorry).
On Wed, Jun 6, 2012 at 2:55 PM, Catsy <kate.kl
...@gmail.com> wrote:
> Hello everyone,
> I've updated the project with the new version of MongoDB C# driver
> (1.4.2 against 1.2) and after the compilation I have huge amount or
> errors. All of them are about updating the existing code - they
> require my classes that implement IBsonSerializer to implement some
> new methods like GetItemSerializationInfo,
> GetDefaultSerializationOptions and GetMemberSerializationInfo. I
> couldn't find any information about these methods including the
> official MongoDB drivers site (it has only out-of-date info). Could
> someone please explain me how to implement these methods or point to
> the resource with the description?
> Thanks