From: John Grandy on 5 May 2010 14:59 How to mark a public member of a class so that it is not included in an xml serialization or deserialization ? Thanks.
From: Family Tree Mike on 5 May 2010 15:13 On 5/5/2010 2:59 PM, John Grandy wrote: > How to mark a public member of a class so that it is not included in an xml > serialization or deserialization ? Thanks. > > Mark the property with the attribute XmlIgnore as below: [XmlIgnore()] public string NotNecessaryString {get; set;} -- Mike
|
Pages: 1 Prev: serialize custom-typed dictionary to xml Next: Error Controlling tape changer with C# |