![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have two classes: public class BaseClass { ... } public class DerivedClass : BaseClass { ... } Suppose I have the following code: DerivedClass dc = new DerivedClass(); BaseClass bc = (BaseClass)dc; How can I serialize "bc" so that only the members of BaseClass are serialized? Currently, it is doing this: BaseClass xsi:type="DerivedClass" //DerivedClass members (including BaseClass members) /BaseClass When what I want is this: BaseClass //BaseClass members only /BaseClass Is this possible? If so, and you need more info in order to help further, let me know what you need. I would prefer to be able to do this without having to explicitly control the entire serialization process. But if that's my only option, I may go about this a different way. Thanks in advance. Jerad |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |