T
The Tarm
hi,
I have two classes, one base : Item and the other derived Group. Group is
derived from Item. Item has a bunch of properties that are exposed through
a PropertyGrid.SelectedObject. Now each of these properties has a
ShouldSerializeXX for them that turns the property into bold font whenever
ShouldSerializeXX return true.
Right now, in my code Item contains some properties and Group contains
some.
I expose all the properties through the Group type object. What happens
unfortunately here is that ShouldSerializeXX is not called on the Item
properties because they are in the base class. Am i missing something? Any
help would be great.
-suresh
I have two classes, one base : Item and the other derived Group. Group is
derived from Item. Item has a bunch of properties that are exposed through
a PropertyGrid.SelectedObject. Now each of these properties has a
ShouldSerializeXX for them that turns the property into bold font whenever
ShouldSerializeXX return true.
Right now, in my code Item contains some properties and Group contains
some.
I expose all the properties through the Group type object. What happens
unfortunately here is that ShouldSerializeXX is not called on the Item
properties because they are in the base class. Am i missing something? Any
help would be great.
-suresh