I was using the sample code specified in the link below to convert the xml value which is a string "Y" into a boolean value for the property it is mapped against. However in my xml that is being serialized the xml element may not exist but I still want to map it to a property in my object. Curently after serialization this property has a null value but I want to set it to false. How can I do this using the example in the link below.
I did try this by setting it in the constructor for the property but then I get an error. Cannot implicitly convert type 'bool' to 'BoolYN'