Halex
11/29/2021, 12:11 PMBase
(which is sealed) and Data
that extends it, and subclasses of Data
that cannot be changed, and I have other modules where I can do anything. The comments in the code below should hopefully guide you. Data
interface should be serialized taking into account only its text property (I use ConcreteData
for deserializing). The issue is that while I can serialize arbitrary subclasses (represented by RandomData
) in the context of Data
, I cannot seem to do it in the context of Base
.
Any help would be greatly appreciated!rocketraman
11/29/2021, 1:55 PMHalex
11/29/2021, 2:43 PMrocketraman
11/29/2021, 2:45 PMcustomSerializersModule
though.rocketraman
11/29/2021, 9:50 PMT
value into a sealed ValueHolder<T>
type did work though.