Use the adapter pattern when you need to convert an object of one type to an object of another type.
在需要将一类对象转换成另一类对象时,请使用适配器模式。
Pattern templates often use iteration and filtering techniques to correctly generate artifacts.
模式模板通常使用迭代和筛选技术来正确地生成构件。
Use of Dojo widget and template pattern.
Dojo小部件和模板模式的使用。
Use a different connection URL pattern to indicate whether you want type 2 or type 4 behavior.
使用不同的连接url模式来指示您需要Type2和type4行为中的哪一种。
Use the REST API to retrieve the cluster pattern (Listing 10a).
使用RESTAPI来检索集群模式(见清单10a)。
Use a pre-established keyboard pattern, like "yui" or "ZXCV." Just look at your keyboard to remember it.
使用键盘的既定模式,例如“yui”或者“zxcv”,你只需查看键盘就能记住密码。
Finally, we can use pattern matching to pull out the elements from a list or tuple using the construct notation mentioned earlier.
最后,可以按前面提到的构造表示方法,使用模式匹配从列表或元组中提取元素。
There are a number of ways to do this, but you will demonstrate how you can once again use pattern matching for this.
实现上述操作有许多方法,但我们将演示如何再一次使用模式匹配方法。
The next two lines use pattern matching to pick off the values required to enforce this rule when the returned function is actually executed.
接下来两行用模式匹配摘出实施规则所必需的数据。
We usually use this pattern when the question that you're asking about relates directly to the person you're speaking with.
当你问的问题与谈话的人直接相关时,我们通常会用这种方式。
You don't use design pattern names when talking and would rather talk about implementation.
在交谈中不使用设计模式名而宁愿谈论实现。
I use this pattern frequently and find that it helps me better separate the concerns between the components.
我经常使用这种模式,并发现借助它可以更好地分离组件之间的关注点。
You can use this pattern at the end of any sequence match to remove length as a condition.
你可以在任何序列匹配的最后使用这个模式来解除长度制约。
You can use this pattern in production (and some users do), but the target environment is development.
您可以在生产环境中使用此模式(某些用户会这样做),但是目标环境是开发。
I'm not advocating that you write down every time that you use a pattern in your work.
我并不是建议在工作中每次使用模式时都进行记录。
The common lookup code that we factored must be duplicated in every client where we want to use this pattern.
必须将这种分解后的常用查找代码复制到使用这种模式的每个客户端上。
We will use this pattern later to set up timer events to happen in "bursts."
我们将稍后使用这个模式来设置“突发的”计时器事件。
You can use the pattern matching in Erlang so that a path on one side triggers a specific response.
您可以使用Erlang中的模式匹配,因此一端的路径可触发特定响应。
We can use a pattern called Double Dispatch to pull out the variation into the subclasses in such a way that we don't break existing interface contracts.
我们可以使用称为双重分发的模式将变化推入子类中,通过这种方式,我们不需要破坏现有的接口定义。
Implementations that use this pattern are not only insulated from the specifics of container or framework APIs, but they are also insulated from endpoint configuration.
使用此模式的实现不仅与容器或框架API的细节隔离,而且还与端点配置隔离。
It is surprisingly simple: the name itself differs, so we can use a simple pattern match on the name field.
令人惊奇的简单:只是名字上的区别,所以我们可在NAME域上使用一个简单的模式匹配。
I built a tool that lets you browse a catalog of patterns, bind them to your code, and statically check your use of the pattern.
我开发了一个工具,它可用来浏览模式,将你的代码与它们绑定起来,用它来静态地检查你对模式的使用。
If you provide enough details in this section, other users will better understand when and how to use a design pattern that you've created.
如果您在此部分中提供了足够的细节,那么其他用户将会很好地理解什么时候且如何使用您创建的设计模式。
Routes make use of regular expressions for pattern matching, and are expressed using XML.
路由在模式匹配时使用正则表达式,并且使用XML表示。
You can use a Factory pattern to create an instance of an implementation class that implements your interface.
您可以使用Factory模式来创建实现接口的实现类的实例。
You use the factory method pattern when an application needs to create objects whose type depend on the implementation of subclasses.
您可以在应用程序需要创建其类型依赖于子类的实现的对象时,使用工厂方法模式。
OK, now I've gone through a fairly detailed example of how to put this pattern to use.
好,现在我已经给出了如何使用该模式的详细范例。
A typical use of this pattern would be the processing EDI files which contain a number of transactions of different types to be routed and processed individually.
此模式的典型用途是处理EDI文件,此类文件包含一系列不同类型的事务,需要各个进行路由和处理。
For instance, if you wanted to know if the word car existed within a character sequence, you would use the pattern car because that is how you represent the exact string.
例如,如果您想知道一个字符序列中是否存在car这个词,您会使用模式car,因为这是精确地表示该字符串的方法。
This article explores how to use the ViewModel pattern to make it easier to work with the TreeView control in WPF.
这篇文章探讨了如何通过使用ViewModel模式来更容易的使用WPF中的TreeView控件。
应用推荐