Urgent: XmlSerialize an object of a class that inherit from a unserializable Class.
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
Post a Comment