有没有在.NET框架中使用任何设计模式? [英] Are there any design patterns used in the .NET Framework?

查看:152
本文介绍了有没有在.NET框架中使用任何设计模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道:任何 GoF的的设计模式,在的.NET框架

I would like to know: are any GoF design patterns are used in the .NET Framework?

赏金:

我已经看到了下面的答案MSDN链接。是否有任何帖子/视频或者你可以列出的模式,最重要的地方是使用?

I have seen the MSDN link below in an answer. Are there any post/video or can you can list patterns and most importantly WHERE it is used?

推荐答案

下面是讨论这个题目的文章:

Here's an article that discusses this very topic:

<一个href="http://msdn.microsoft.com/en-us/magazine/cc188707.aspx">http://msdn.microsoft.com/en-us/magazine/cc188707.aspx

和现在的MVC模式可以在ASP.NET MVC增加。 :)

And now the MVC pattern can be added with ASP.NET MVC. :)

编辑:既然你编辑/请求的详细信息:

Since your edit / request for more info:

下面是一篇文章,列出了几个图案和在那里他们将在框架中使用。 <一href="http://www.jot.fm/issues/issue_2006_11/article1.pdf">http://www.jot.fm/issues/issue_2006_11/article1.pdf

Here's an article that lists several patterns and where they are used in the framework. http://www.jot.fm/issues/issue_2006_11/article1.pdf

在.NET中的供应商都是提供者模型模式。 <一href="http://msdn.microsoft.com/en-us/library/aa479030.aspx">http://msdn.microsoft.com/en-us/library/aa479030.aspx

The Providers in .NET are all the Provider model pattern. http://msdn.microsoft.com/en-us/library/aa479030.aspx

在.NET提供者模式也使用策略模式。

The provider patterns in .NET also use the Strategy Pattern.

工厂模式是用在几个地方和这里的地方它在ASP.NET中使用的样本。 <一href="http://msdn.microsoft.com/en-us/library/ms954600.aspx">http://msdn.microsoft.com/en-us/library/ms954600.aspx

The factory pattern is used in several places and here's a sample where it's used in ASP.NET. http://msdn.microsoft.com/en-us/library/ms954600.aspx

下面是在.NET上 DP 的网络直播: <一href="http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?culture=en-US&EventID=1032293567&Country$c$c=US">http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?culture=en-US&EventID=1032293567&Country$c$c=US

Here's a webcast on DP's in .NET: http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?culture=en-US&EventID=1032293567&CountryCode=US

我没有看过它,所以我不知道有多少它进入它们是如何在框架中使用...

I haven't watched it so I am not sure how much it goes into how they are used in the Framework...

由于已经在评论中提到,GoF的模式很可能都在使用.NET Framework中。其中,是不完全的最简单的回答为架构是大规模和除非MS出版象这样在一些实施例中列出给定它并不总是明显。更熟悉的是用图案就越有可能你会发现这是使用它的框架类。

As already mentioned in a comment, the GoF patterns are likely all in use in the .NET framework. Where is not exactly the easiest to answer as the framework is massive and unless MS publishes as such listed in some of the examples given it is not always obvious. The more familiar one is with a pattern the more likely you would notice a framework class that was employing it.

我希望我已经加入帮你额外的链接。

Hopefully the extra links I have added help you.

此外,<一个href="http://www.dofactory.com/Framework/Framework.aspx">http://www.dofactory.com/Framework/Framework.aspx有一个销售工具包($ 79-99),这是关于教如何使用/实施的GoF在.NET模式,但他们做的阅读清单,他们还将解释,其中MS使用它们的框架。

Additionally, http://www.dofactory.com/Framework/Framework.aspx has a for sale kit ($79-99) that is about teaching how to use/implement GoF patterns in .NET BUT they do list on the reading they will also explain where MS uses them in the Framework.

这篇关于有没有在.NET框架中使用任何设计模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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