I’m using late-bound object deserialisation indirectly as part of the Azure MQ implementation. I have a property that is marked with a DataMember attribute so it’s serialised with a different name. When type info is included should this deserialise correctly to an object-typed property?
Cheers @mythz. Should request DTOs be decorated with [DataContract] if any of the properties have [DataMember]? They work without, but I’ll add them if that could change in the future.
I’ve just realised when I said it worked, that was when the request was FormData, not JSON! :face_palm: When deserialising FormData, with no [DataContract] attribute on the class, all public properties are deserialised (with or without the [DataMember] attribute).