G
Guest
I want to serialize the properties of controls. I write Property Name and Value to an Hashtable. This hashtable is serialized. So I want to find out which properties of the control are serializable. I tried following but it doesn't work. I still get not serializable properties into my hashtable. Exception of System.Runtime.Serialization.SerializationException [...] is not marked as serializable
PropertyInfo[] pi
Type t
t=ctl.GetType()
pi=t.GetProperties (BindingFlags.Public | BindingFlags.Instance)
foreach(PropertyInfo p in pi
if(p.PropertyType.IsSerializable
AddtoHashtable(p.Name,p.GetValue(ctl,null))
Thanks for your hel
Michi
PropertyInfo[] pi
Type t
t=ctl.GetType()
pi=t.GetProperties (BindingFlags.Public | BindingFlags.Instance)
foreach(PropertyInfo p in pi
if(p.PropertyType.IsSerializable
AddtoHashtable(p.Name,p.GetValue(ctl,null))
Thanks for your hel
Michi