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

前端 未结 3 866
情深已故
情深已故 2021-01-20 08:14

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:58

    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.

提交回复
热议问题