The role of BeginInit() and EndInit() methods in Designer
问题 I've red that those methods of ISupportInitialize interface are used by Designer to support optimization, to ensure atomicity of initialization of controls, and to prevent any action on controls during initialization. My questions are: In what way they help Designer to optimize initialization of controls? Why to ensure atomicity of initialization? Is there any reasonable example when to use them in code not generated by Designer? 回答1: It does not have anything to do with optimization.