开发者

When modifying Dispose(bool) in a winforms generated .Designer.cs file is it necessary to move Dispose to the main code file?

开发者 https://www.devze.com 2023-01-29 03:47 出处:网络
I have found mixed opinions regarding this question in answers to other questions, but have not found a question that directly addresses it.

I have found mixed opinions regarding this question in answers to other questions, but have not found a question that directly addresses it.

Is it necessary to move the Dispose method, in a winforms generated .Designer.cs file, to the m开发者_如何学运维ain code file so that the designer will not overwrite changes I have made to the method?


No, you won't lose it. But move it, the customization isn't discoverable in a file that nobody ever looks at.

0

精彩评论

暂无评论...
验证码 换一张
取 消