It would be useful if PolyType could recognize KnownTypeAttributes even when no DataContract attribute is applied.
NOTE: If there is any existing PolyTypeAttribute such as [TypeShape], [GenerateShape] and expecially [DerivedShape] then it is perfectly fine to ignore the attribute.
My exact case is that I want such that I wanted to serialize lots of existing class hierarchies that are previously written using DataContract serialization rules. Such as https://github.com/OpenRIAServices/OpenRiaServices/blob/585cb6c449315d809bfb60104b08d99d95858e64/src/Test/Desktop/OpenRiaServices.Common.DomainServices.Test/Cities/CityTypes.cs#L44
I managed to do workarounds where I dynamically generate surrogate types with the proper attributes applied, but it would have been very nice if PolyType could recognize the attribute even
It would be useful if PolyType could recognize KnownTypeAttributes even when no DataContract attribute is applied.
NOTE: If there is any existing PolyTypeAttribute such as [TypeShape], [GenerateShape] and expecially [DerivedShape] then it is perfectly fine to ignore the attribute.
My exact case is that I want such that I wanted to serialize lots of existing class hierarchies that are previously written using DataContract serialization rules. Such as https://github.com/OpenRIAServices/OpenRiaServices/blob/585cb6c449315d809bfb60104b08d99d95858e64/src/Test/Desktop/OpenRiaServices.Common.DomainServices.Test/Cities/CityTypes.cs#L44
I managed to do workarounds where I dynamically generate surrogate types with the proper attributes applied, but it would have been very nice if PolyType could recognize the attribute even