6.30
This commit is contained in:
18
1Project/构建新框架/管道模式/管道模式.md
Normal file
18
1Project/构建新框架/管道模式/管道模式.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