Closed bastianeicher closed 8 years ago
thanks
Shouldn't you also check for DataContractAttribute?
no it's not mandatory
why not? before classes decorated with DataContract instead of ProtoContract could also be serialized with protobuf, now they are not supported anymore?
I think this is just a small misunderstanding.
@bacobart I believe you are suggesting CanReadTypeCore()
should return true
if DataContract
or ProtoContract
is present. Sounds like a good idea, I simply forgot about DataContract
in my pull request.
@filipw I believe you understood @bacobart to be suggesting checking if DataContract
and ProtoContract
are present.
Determine serializability by looking for ProtoContractAttribute