How do you specify a NonSerialized field with public accessors for XML Serialization?
[NonSerialized]
public String _fooBar;
//Declaring the property here will serialize the _fooBar field
public String FooBar
{
get { return _fooBar; }
set { _fooBar = value; }
}
NonSerialized
. – Pessimist[XmlIgnore]
works with auto-properties, though. – Verve