Questions et réponses pour le nonserializedattribute :

Récupérer toute la FAQ sur NONSerializedAttribute

6
votes
[Serializable] class MyClass { [NonSerialized] int Foo { get; set; } // error [NonSerialized] int bar; // ok } Why is this disallowed?I know about the workarounds such as implementing ISe ...