{"id":36924126,"url":"https://github.com/sheng-jie/Design-Pattern","last_synced_at":"2026-01-19T18:00:45.897Z","repository":{"id":50679014,"uuid":"71625921","full_name":"sheng-jie/Design-Pattern","owner":"sheng-jie","description":"设计模式 C# 版（ .NET 6），有系列文章讲解","archived":false,"fork":false,"pushed_at":"2023-03-03T08:45:36.000Z","size":330,"stargazers_count":852,"open_issues_count":2,"forks_count":246,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-06-01T01:35:12.768Z","etag":null,"topics":["csharp","design-patterns","dotnet"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sheng-jie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-22T08:13:28.000Z","updated_at":"2024-05-30T05:58:59.000Z","dependencies_parsed_at":"2024-01-13T17:40:31.514Z","dependency_job_id":"2dc30bfd-f7c3-4285-9ee2-aa8a6a6f25ef","html_url":"https://github.com/sheng-jie/Design-Pattern","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sheng-jie/Design-Pattern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheng-jie%2FDesign-Pattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheng-jie%2FDesign-Pattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheng-jie%2FDesign-Pattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheng-jie%2FDesign-Pattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sheng-jie","download_url":"https://codeload.github.com/sheng-jie/Design-Pattern/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheng-jie%2FDesign-Pattern/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28578952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T17:42:58.221Z","status":"ssl_error","status_checked_at":"2026-01-19T17:40:54.158Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","design-patterns","dotnet"],"created_at":"2026-01-12T19:00:25.487Z","updated_at":"2026-01-19T18:00:45.888Z","avatar_url":"https://github.com/sheng-jie.png","language":"C#","funding_links":[],"categories":["C# #"],"sub_categories":[],"readme":"\n# DEMO 版本已更新至.NET 6 !!!\n\n# 『设计模式』之小试牛刀（来了就给个Star吧！）\n\n\u003cblockquote\u003e\n为了更好的学习设计模式，以及督促自己完成设计模式的学习，现提笔为记。\n怎么的，每周至少也要学一个设计模式！！！\n恳请大家的监督和不吝赐教，共同学习和进步！\n内容主要参考自《设计模式之禅》、《大话设计模式》两本书籍，以及相关网络博文！\n\u003c/blockquote\u003e\n\n\n\u003e 源码路径：[源代码](https://github.com/yanshengjie/design-pattern) ***C#***\n\n\u003cblockquote\u003e\n目录\n\u003c/blockquote\u003e\n\n1. [想学设计模式，你得先会看类图，一张图读懂UML](http://www.jianshu.com/p/0cd7df8a7789)\n\n2. [大致了解下都有哪些设计模式](http://www.jianshu.com/p/4a02646f7c9d)\n\n3. [我是独一无二的『单例模式』](http://www.jianshu.com/p/2054c44dcd5a)\n\n4. [创建相似对象，就交给『工厂模式』吧](http://www.jianshu.com/p/1275b99ca973)\n\n5. [固定模板，不同算法，就用『模板方法模式』](http://www.jianshu.com/p/4c8d1a0a75e1)\n\n6. [关注产出，不关心细节，『建造者模式』](http://www.jianshu.com/p/c5811ca1d208)\n\n7. [重复构造，打出原形，『原型模式』](http://www.jianshu.com/p/ce7b981708b4)\n\n8. [间接访问，非『代理模式』莫属](https://www.cnblogs.com/sheng-jie/p/6638690.html)\n\n9. [系列对象，依赖交互，『中介者模式』来帮忙](http://www.jianshu.com/p/d37cd087a06f)\n\n10. [任务分发，只管下达『命令模式』即可](http://www.jianshu.com/p/e9144a2101db) \n\n11. [流程业务，各司其职，『责任链模式』](http://www.jianshu.com/p/95908acb842a)\n\n12. [毛坯还是精装修，先看看样板房，『装饰模式』](http://www.jianshu.com/p/246041fc39a4)\n\n13. [算法独立于场景而灵活变化，『策略模式』](http://www.jianshu.com/p/390fd50d02b8)\n\n14. [新旧对接，『适配器模式』](http://www.jianshu.com/p/5e5f5024c62e)\n\n15. [玩转集合容器，『迭代器模式』](http://www.jianshu.com/p/ae229f72c522)\n\n16. [部分整体，树形结构，『组合模式』来帮忙](http://www.jianshu.com/p/9e49e5d702df)\n\n17. [『观察者模式』来钓鱼](http://www.jianshu.com/p/45675c73296d)\n\n18. [ATM取款聊聊『门面模式』](http://www.jianshu.com/p/c89a922a60c0)\n\n19. [后悔药，『备忘录模式』](http://www.jianshu.com/p/6d46b5d3fdee)\n\n20. [这一次数据说了算，『访问者模式』](http://www.jianshu.com/p/3aa45b6be7ae)\n\n21. [自动驾驶谈谈『状态模式』](http://www.jianshu.com/p/42d4ca7316ad)\n\n22. [对象复用，『享元模式』](http://www.jianshu.com/p/3fb0b559602b)\n\n23. [牵线搭桥，『桥接模式』](http://www.jianshu.com/p/d0314ebb0617)\n\n![设计模式之禅](http://upload-images.jianshu.io/upload_images/2799767-4df489c0f630a241.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheng-jie%2FDesign-Pattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheng-jie%2FDesign-Pattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheng-jie%2FDesign-Pattern/lists"}