假设我收到了一个描述如何维修汽车的文本文件。
目前,文本文件中包含每种汽车类型的所有步骤:
即:
Service_Cars.txt
Step 1: Open Hood
Step 2: Check Fluids
Step 3: Fill gas tank (NA FOR ELECTRIC CARS)
Step 4: Charge car (NA FOR GAS CARS)
等
我想把这个文本文件分成多个文件,每个文件对应一种汽车类型。
Service_Gas_Car.txt
Step 1: Open Hood
Step 2: Check Fluids
Step 3: Fill gas tank
我需要一个程序来设计UML图并从它生成C#代码。
我的目标是为一些个人项目构建一个UML类图,并使用它生成代码的主干。
例如,软件允许我构建这样的类图:
📷
并从中生成以下代码:
public class Component
{
public void operation()
{
}
}
public class ConcreteComponent : Component
{
public void operation()
{
}
}
public class Decorator : Component
{
private obj