Is OnDeserializedAttribute Supported by Every Serializer?

后端 未结 1 758
离开以前
离开以前 2021-01-21 22:54

I just stumbled across OnDeserializedAttribute on MSDN. The description states

When applied to a method, specifies that the method is called immediately

相关标签:
1条回答
  • 2021-01-21 23:49
    1. No. It does not work on the XmlSerializer.
    2. It doesn't do any enforcement. It's an "opt-in" functionality for a serializer.
    3. It does work on BinaryFormatter and DataContractSerializer.
    0 讨论(0)
提交回复
热议问题