整理笔记 2025.6.20
This commit is contained in:
18
2Areas/开发感悟/管道模式/管道模式.md
Normal file
18
2Areas/开发感悟/管道模式/管道模式.md
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
tags:
|
||||
- 设计模式
|
||||
---
|
||||
|
||||
|
||||
``` csharp
|
||||
public class Seq<T>{
|
||||
public Command<T>[] cmds;
|
||||
public T Context;
|
||||
}
|
||||
```
|
||||
|
||||
``` csharp
|
||||
public class Command<T>{
|
||||
public void Excute(T context){}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user