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

XMLWordPrintableJSON

    • None
    • Fully Compatible
    • Not Needed
    • 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:
            Kyra Ramesh Krishna
            Reporter:
            Robert Stam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: