Serilization

来源:互联网 发布:美股软件 编辑:程序博客网 时间:2024/06/12 17:58

1, How to mark a evet as no-serizalizable?

To apply the NonSerializedAttribute class to an event, set the attribute location to field, as shown in the following C# code.

[field:NonSerializedAttribute()] public event ChangedEventHandler Changed;