Urgent: XmlSerialize an object of a class that inherit from a unserializable Class.


i have custom window control based on tabpage, inherit tabpage, , has properties need saved, need save properties appear in custom window control, , not properties inherited.
i want because first don't need others properties, second because there error xmlserializer can't serialize "myobject.*.site" property (issued component)

so need know if can done, if yes, how ?

thanks in advance

msdn: "another option use special pattern create boolean field recognized xmlserializer, , apply xmlignoreattribute field. pattern created in form of propertynamespecified. example, if there field named "myfirstname" create field named "myfirstnamespecified" instructs xmlserializer whether or not generate xml element named "myfirstname". shown in following example."

 

so can try create boolean mentioned above , set false properties not want serialized.

 

also, can use ixmlserializable.



Archived Forums A-B  >  ASMX Web Services and XML Serialization



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

Catalog Staging

How to Share webservice object to all user