Dispose on user controls, really meant to edit the .designer.cs file?

前端 未结 3 1947
被撕碎了的回忆
被撕碎了的回忆 2021-01-20 08:33

For a user control with internal data structures that must be disposed, is the correct place to add that code to the Dispose method in the .designer.cs file, or is there an

3条回答
  •  天命终不由人
    2021-01-20 08:39

    Or, you could cut and paste it over to the main .cs file. That code is not inside of "#region Component Designer generated code", so Studio won't miss it.

提交回复
热议问题