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

c#, windows-forms-designer, winforms

Solution

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

Problem

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 main code file so that the designer will not overwrite changes I have made to the method?

Original source

Related problems