我已经创建了UML类图并生成了类和代码,但是我需要在类(新方法,成员)中添加更多代码,并且需要同步旧的UML类图和代码。
You can use partial class for that. Write any new methods/properties in a separate partial class so that it doesn't get overridden when you sync the other partial class with the class diagram.
Partial class splits the class into separate files.
如果您在Visual Studio(.cd文件)中创建了一个类图,它将自动更新。
I added a method in class that I generated from the class diagram, and this method not added to a class diagram. Maybe there is a setting to sync?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.