On Sunday, September 23, 2012 3:42:23 PM UTC-4, craiggwilson wrote:
> What is it that you were expecting a problem with? What does 1.6 do that
> has been fixed?
> On Sunday, September 23, 2012 3:35:16 PM UTC-4, Justin Dearing wrote:
>> Apparently this has been fixed post 1.6 release. Disregard.
>> On Sunday, September 23, 2012 3:01:51 PM UTC-4, Justin Dearing wrote:
>>> A complete example of the failure is here:
>>> http://pastebin.com/9SwV6Huh
>>> Basically lets assume that AProp is property of type IProp, and IProp is
>>> an interface:
>>> var superClass1 = new SuperClass
>>> {
>>> Name = Guid.NewGuid().ToString(),
>>> AProp = null
>>> }
>>> No incantation of BsonSerializer.LookupSerializer(); will fix this.
>>> Should there be some sort of "NullSerializer" to handle this? Should it
>>> just use BsonNullSerializer? Is there a need for a specialized
>>> BsonNullInterfacePropertySerializer?
>>> If you don't feel this is by design, I'll file a bug an write a unit
>>> test.
>>> Justin