This project has moved. For the latest updates, please go here.

How To: Add mapping behaviour for a specific type and all its sub-types.

Jul 27, 2013 at 5:07 PM
Example: I want to map all properties of a reference type or nullable type, but only if they are not null. Otherwise ignore the property. This should be configure by type, not by property name.
Can this be done?

Real-life use case for this: I am using protobuf-csharp-port, where it makes a difference if you assign null to a property, or if you do not perform an assignment at all. In one case, a null is encoded, in the other case, the named property is left out of the encoding altogether, which saves space.