更新时间:2023-11-28 19:21:52
这可以通过使用的分部类的在不同的文件中。在这个问题中给出的code可以被移动到这个新的部分的类文件。该文件将持久存在,即使是重新创建自动生成的文件。
This can be resolved by using Partial Classes in a different file. The code given in the question can be moved to this new partial class file. This file will persist even if the auto generated file is re-created.