I have hard and fast consumer-defined types which already implement a Serializable interface, now I would like to host them in server-facet software and reveal a few of these sorts to the purchaser by marking them with data contract attribute.
Sadly, I cannot mark the equal magnificence with data contract characteristic as it's far already serializable and it reasons runtime exception.
However, at the identical time, I cannot remove the serializable implementation inside the vintage person-defined kind.
A person pls help me how do I reveal these kinds to the consumer. With the aid of marking data contracts and without doing away with serializable.
Subscribe to get latest updates