Как указать поле NonSerialized с общедоступными средствами доступа для сериализации XML

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; }
}
6
задан MPelletier 18 April 2011 в 17:51
поделиться