Re: How to XmlSerialize an Object that has an interface in it
- From: "Jeff Johnson" <i.get@xxxxxxxxxxx>
- Date: Tue, 15 Sep 2009 15:26:51 -0400
"Christian Treffler" <CTreffler.NG.Dev0@xxxxxx> wrote in message
news:1lkvx561d5pue.dlg@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
XmlSerializer is Ignoring XmlIgnore
Funny, I always use [XmlIgnoreAttribute].
Your code should look like this:
class A
{
string a;
[XmlIgnoreAttribute]
ISomeInterface x;
}
When using any class derived from Attribute which ends with "Attribute" (and
I can't remember if they're required to or not) you can always drop that
"Attribute," so [XmlIgnore] and [XmlIgnoreAttribute] are identical.
.
- References:
- How to XmlSerialize an Object that has an interface in it
- From: JPK
- Re: How to XmlSerialize an Object that has an interface in it
- From: Bjørn Brox
- Re: How to XmlSerialize an Object that has an interface in it
- From: JPK
- Re: How to XmlSerialize an Object that has an interface in it
- From: Christian Treffler
- How to XmlSerialize an Object that has an interface in it
- Prev by Date: Re: Search through a (large) binary file.
- Next by Date: Re: Problem with encoding a character
- Previous by thread: Re: How to XmlSerialize an Object that has an interface in it
- Next by thread: Re: How to XmlSerialize an Object that has an interface in it
- Index(es):
Relevant Pages
|