Design pattern in C# by using professional examples

所在平台: Udemy

课程主页: https://www.udemy.com/course/design-pattern-in-c-by-using-professional-examples/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:C#中的设计模式(使用专业示例) 课程概述:该课程深入探讨了C#中的多种设计模式,通过专业实例帮助学员理解其应用。 **创建型设计模式**: 1. **简单工厂模式**:通过“CreateExam”方法为在线考试创建对象。 2. **工厂方法模式**:使用ConcreteFactory子类为在线考试创建对象。 3. **抽象工厂模式**:根据不同操作系统,通过AbstractWidgetFactory为窗口和对话框创建对象。 4. **单例模式**:通过通用示例理解单例概念,介绍静态初始化和双重锁检查的例子。 5. **原型模式**:在运行时为普通用户和特权用户创建原型对象。 6. **建造者模式**:使用流式接口和银行建造者按步骤创建BankAccount对象。 **结构型设计模式**: 1. **适配器模式**:在媒体播放器和媒体包之间使用适配器。 2. **桥接模式**:在持久性机制和文件类型之间使用桥接。 3. **组合模式**:通过HTML树结构演示父子元素关系。 4. **装饰器模式**:为赛车应用程序装饰阶段进度。 5. **外观模式**:为不同类型的数据库生成报告。 6. **代理模式**:通过餐馆应用程序演示远程代理、虚拟代理和保护代理。 **行为型设计模式**: 1. **责任链模式**:ATM取款应用程序处理不同面额的印度卢比。 2. **命令模式**:带有重做和撤销功能的计算器应用程序。 3. **解释器模式**:将罗马数字转换为数字。 4. **迭代器模式**:迭代博客文章。 5. **中介者模式**:为不同类别用户创建聊天中介。 6. **备忘录模式**:保存点和文件内容,以便返回到先前的保存点。 7. **观察者模式**:在产品可用时通知所有客户。 **SOLID原则**: 1. 检查肮脏代码的检测点。 2. SOLID原则的重要性探讨。 3. SOLID的缩写含义。 4. 单一责任原则(SRP)的概念及其违反情况 - 示例:贷款申请。 5. 开放-关闭原则(OCP)在贷款申请中的应用。 6. 里氏替换原则(LSP)在添加教育贷款后出现的违反情况。 7. 接口隔离原则(ISP)为解决LSP违反提供的解决方案。 8. 依赖倒置原则(DIP):通过理解英语和法语信使来讲解贷款申请中的概念。 此课程适合希望深入理解并应用设计模式的C#开发人员,帮助学员提升代码质量和设计能力。

课程评论(0条)

课程详情

Creational Design Pattern 1. Simple Factory - Creation of object by using "CreateExam" Method for OnlineExam.2. Factory Method - Creation of object by using ConcreteFactory subclasses for OnlineExam.3. Abstract Factory - Creation of object for Window and Dialog with respect to different OS by using AbstractWidgetFactory.4. Singleton - Generic example to understand the concepts, example of static initialization and double lock checking.5. Prototype - Creation prototype object at run time for GeneralCustomer and PrevilegeCustomer.6. Builder - Creation of object in series of steps by using Fluent Interface and Bank builder for BankAccount.Structural Design Pattern 1. Adapter - Adapter used in between Mediaplayer and Mediapackage2. Bridge - Example Used - Bridge used in between persistence mechanism and file types.3. Composite - Example Used - HTML tree structure with parent and child element.4. Decorator - Example Used - Decorating CarRacing application with stage progression.5. Facade - FacadeReportGenerator for different type of DB.6. Proxy - Example used for remote proxy, virtual proxy and protection proxy through restaurant application.Behavioral Design Pattern 1. Chain of Responsibility - ATMWithdraw application for different denominator of Indian rupees.2. Command - Calculator Application with redo and undo features.3. Interpreter - Convert Roman number to number.4. Iterator - Iterating posts of blog.5. Mediator - ChatMediator for different category of users.6. Memento - Savepoint with file contents so that go back to previous save point.7. Observer - Notify all customers when product is availableSolid Principle1. Checkpoint to see dirty code.2. Should we give importance to Solid Principle.3. Acronym of SOLID.4. SRP Concetps with violation - Example Used: Loan Application5. OCP: Used open and closed principle in Loan Application6. LSP: Violation of LSP after adding Educational Loan to Loan Application.7. ISP: Provide solution to LSP violation in the form of ISP.8. DIP: Used English and French messenger to understand the concepts in Loan Application.

课程标签

0人关注该课程

主题相关的课程