10-26-04 12:46 PM
Thanks Alan,
But the problem is that I do not want to ignore the attribute all the time
rather then if it is not send by source then ignore it. Hope you have
understood,
Let me know,
Vishal.
"Alan Smith" wrote:
[vbcol=seagreen]
> Hi Vizsal,
>
> .net povides a bunch of attributes that you can use to specify how the
> public fields are serialised. You could use the XmlIgnore attribute to
> specify this:
>
> public class Group
> {
> // The XmlSerializer ignores this field.
> [XmlIgnore]
> public string Comment;
>
> // The XmlSerializer serializes this field.
> public string GroupName;
> }
>
>
> More info in the Visual Stidio help file:
>
> ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfsystemxmlse
rializationxmlignoreattributeclasstopic.htm
>
> Regards,
>
> Alan
>
>
>
> "Vishal" wrote:
>
[ Post a follow-up to this message ]
|