This code USES the private methods to retrieve an object from the pool and call the provided delegate.
该代码使用私有方法从池中检索对象,并且调用所提供的委托。
Transactions enable us to delegate many elements of exception handling and recovery to the TPM and the RMs, simplifying our code and freeing us to think about application logic instead.
事务使我们能够将很多异常处理和恢复工作委托给TPM 和RM,从而简化了我们的代码,并使我们能够空出更多时间来考虑应用程序逻辑。
To simplify the process of creating the markup language, the Delegate class has the job of crafting the actual HTML code.
为了简化创建标记语言的过程,delegate类负责生成实际的HTML代码。
Thanks to the power of the @Delegate annotation, you were able to create a FixedList class in about 50 lines of code.
感谢 @Delegate注释的强大威力,我们只使用大约50代码就创建了FixedList类。
Instead of using regular expressions to rewrite public URIs onto private ones, Ranvier implements a chain-of-responsibility design pattern to delegate resource determination to relevant code.
Ranvier并不使用正则表达式把公共uri重写成私有uri,而是实现责任链(chain - of - responsibility)设计模式,把资源判断任务委托给相关代码。
Check the delegate role, and enter the user code and password mapped to the delegate role.
选中delegate角色,并输入映射到委托角色的用户代码和密码。
Sometimes, you have no choice but to delegate a victim thread to wait for a blocking call to finish, while the rest of your code gets on with its life.
有时你还不得不选择一个专门的进程来等待阻塞调用来结束这些,你的其它代码也随之结束。
Keep in mind it is best to hide the EJB call behind a business delegate rather than calling it directly in the plug-in code.
要记住,最好将EJB调用隐藏在业务委派之后而不是在插件代码中直接调用。
The wrapper code would be the Web service, and it would delegate all invocations to the real implementation.
包装器代码将是Web服务,并且它将委派真正实现的所有调用。
These are classes that execute user code, often a delegate to some method (which might be anonymous), when certain conditions are met.
这些类用来在当特定情况出现时执行用户代码(用户代码通常是某个方法的delegate)。
It also provides you with an elegant application model, making heavy use of the delegate pattern to eliminate much of the boilerplate code from your application.
它还向您提供了一个优雅的应用程序模型,利用代理模式来从您的应用程序消除大量重复代码(boilerplatecode)。
Within the code block, the delegate keyword refers to the instance of the class you are adding methods to.
在代码块中,delegate关键字指向您将要向其中添加方法的类的实例。
With anonymous methods mimic the code layout of a regular method, aligned with the anonymous delegate declaration.
匿名方法模仿普通方法的布局,和匿名委托定义放在一行。
Use this name to search your code for platform invoke or COM signatures that pass that delegate out to unmanaged code.
请使用此名称在您的代码中搜索将该委托外传给非托管代码的平台调用或COM签名。
For example, specifying a code block instead of a delegate can be useful in a situation when having to create a method might seem an unnecessary overhead.
例如,如果创建方法所需的系统开销是不必要的,则指定代码块(而不是委托)可能非常有用。
One approach you could take is to have some kind of delegate mechanism, which would allow the caller to break into the flow of code and to override the default logic within the step.
一种方法你可以采取有代表机构,这将允许呼叫者进入代码流和覆盖默认的内部逻辑步骤。
For example, binding rules prevent transparent code from calling critical code directly via a transparent delegate.
例如,绑定规则阻止透明代码直接通过透明委托调用关键代码。
Unmanaged APIs that take functions Pointers as arguments can be called from managed code with a managed delegate in place of the native function pointer.
可以使用托管委托取代本机函数指针来从托管代码中调用以函数指针作为参数的非托管api。
Anonymous methods are most frequently used to pass a code block as a delegate parameter.
匿名方法通常用于将代码块作为委托参数进行传递。
The code that wants to automatically iterate code must provide only a delegate implementation.
该代码,希望能够自动重复代码必须提供唯一一名代表执行。
Do understand that by calling a delegate, you will be executing arbitrary code, which might have security, correctness, and compatibility repercussions.
要了解调用委托将会执行任意代码,这可能会造成安全性、正确性和兼容性方面的问题。
For use with anonymous methods, the delegate and the code to be associated with it are declared together.
为了与匿名方法一起使用,委托和与之关联的代码必须一起声明。
Creating anonymous methods is essentially a way to pass a code block as a delegate parameter.
要将代码块传递为委托参数,创建匿名方法则是唯一的方法。
OK to create the delegate and generate the initial code into the file specified in the dialog box.
“确定”以创建委托,并在对话框中指定的文件中生成初始代码。
This class creates a thread and also contains the code that the thread executes without creating an additional method for the delegate.
无需为委托创建更多方法,线程类即可创建一个线程并且包含该线程执行的代码。
These binding rules ensure that the only code that can invoke a method via a delegate could have also invoked the same method directly.
这些绑定规则确保通过委托调用方法的唯一代码也已直接调用相同方法。
With anonymous methods, mimic the code layout of a regular method, aligned with the delegate declaration. (complies with placing an open curly brace in a new line).
使用匿名方法时,代码风格应该和普通方法一样,与委托声明对齐。(大括号应该放到新的一行里)。
To unsubscribe in this scenario, it is necessary to go back to the code where you subscribe to the event, store the anonymous method in a delegate variable, and then add the delegate to the event.
若要在这种情况下取消订阅,必须回到订阅该事件的程序码,并将此匿名方法储存到委派变数内,然后再将该委派加入此事件中。
After a delegate object is created, the delegate object is typically passed to other code that will call the delegate.
在建立委派物件之后,该委派物件通常是传递到将会呼叫委派的其他程序码。
The following code example demonstrates the declaration of an event handler delegate that does not use event data.
以下程序码范例示范如何宣告不使用事件资料的事件处理常式委派。
应用推荐