Replies: 1 comment 2 replies
-
Unfortunately this is not possible directly. The way that the framework/library works is that it will first create all members ( This is a place where you will probably want to use some delegate for serialization rather than use a production class directly (Note that this delegate type could be file private or internal). So you basically have a very dumb data type that you (de)serialize (for A and/or B) and then you use that type to create the final structure (with reference to container/parent). You can make this transparent by creating a custom serializer for |
Beta Was this translation helpful? Give feedback.
-
Suppose I have two classes:
I need some way to get instance of A in init block of B when decoding legacy XMLs. Is there any way?
Beta Was this translation helpful? Give feedback.
All reactions