在c#asp.net中主要使用哪种设计模式 [英] which design pattern is mostly use in c# asp.net

查看:60
本文介绍了在c#asp.net中主要使用哪种设计模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪种设计模式主要用于C#asp.net

解决方案

这取决于要求.但是我看到了以下最常用的-

依赖注入,单例,装饰器,工厂,抽象工厂,观察员.具有足够丰富的功能,该语言可能是次要的,并且影响力可能相对较小.


which design pattern is mostly use in C# asp.net

解决方案

It depends on the requirement. But I have seen the following most commonly used -

Dependency Injection, Singleton, Decorator, Factory, Abstract Factory, Observer.


Almost any - pick your task and pick a design pattern (or several) to help achieve it - so long as the language is sufficiently rich in features, the language is probably secondary and is likely to have relatively little influence.


这篇关于在c#asp.net中主要使用哪种设计模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆