I have a class where it s problematic to relay on the properties being serialized in alphabetical order at design time. In other words, property Z must be serialized before property A.
The problem arises because property property Z clears property A whenever it changes - which happens in InitializeComponent. I work around this problem by setting a FirstTime flag, but that seems messy.
我找到了一个解决办法:
处理这一问题的正确方式是什么?