I have written some code that iterates through all of the properties of a number of objects [Ok, they all happen to be derived from System.Web.UI.Control]. My goal is to be able to persist and restore these properties for special purposes.
The problem I am running into is that many of the properties are of types that do not support serialization (e.g. Unit).
I am looking for suggestions on the "best practices" for serializing this information. Obviously there IS a mechanism since these properties would normally be places into the aspx/ascx files if the conrols were being used in a "normal" fashion. Also I believe that these types can be remoted, and are therefore serializable in some fashion.
While the current need is for Web.UI type items, I am looking for a solution that is fairly general purpose.
Any and all comments [except for REALLY snide ones] appreciated.