RegisterSerializer should check that the serializer's ValueType matches the type it is being registered for

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The following should result in an exception thrown when RegisterSerializer is called:

      var intSerializer = new Int32Serializer();
      BsonSerializer.RegisterSerializer(typeof(long), intSerializer);
      

      because the types don't agree.

            Assignee:
            Unassigned
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: