-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.5
-
Component/s: Serialization
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.
- is duplicated by
-
CSHARP-1949 BsonSerializer RegisterSerializer should validate serializer argument
- Closed
- is related to
-
CSHARP-1643 Differencies in how new Driver handle custom serialization
- Closed