View Single Post
Old 10-14-2006, 08:38 AM
rbulph rbulph is offline
Junior Contributor
Join Date: Feb 2003
Posts: 397
rbulph is on a distinguished road

Well in fact I already have a custom property descriptor class used for all my properties so all I need is to do this in that class:

Public Overrides Function ShouldSerializeValue(ByVal component As Object) As Boolean
        Return False
    End Function

This works perfectly to prevent things appearing in bold. What I find a bit puzzling is that serialization continues to work perfectly well in spite of me doing this, i.e. the classes can be saved no problem. I was thinking I would have to amend the return value of the function when serializing, but I don't. Maybe the name of the function isn't a very clear indication of what it actually does.
Reply With Quote