Skip to content

Instantly share code, notes, and snippets.

@ChengYiWu
Last active July 21, 2017 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChengYiWu/d8e86a68c7797367f92b594d251be792 to your computer and use it in GitHub Desktop.
Save ChengYiWu/d8e86a68c7797367f92b594d251be792 to your computer and use it in GitHub Desktop.
【Design Patterns】Decorator 實作與應用
public Document PrintWord2(IList<PlanModel> plans){
// 產生一份空白文件
Document doc = new Document();
// 產生封面
// ...
// 產生空白頁
// ...
// 產生附件
// ...
// 設定區塊
// ...
// 設定頁碼
// ...
return doc;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment