Once we have a delegate type in the metadata and a target function we'd like to call, we must form an instance of the delegate over a target.
在一个元数据中,一旦我们有了一个委托类型和一个我们想要调用的目标函数,我们必须从目标形成一个实例。
The constructor is used to form a delegate over a target object and a function pointer.
这构造器用来通过一个目标对象和一个函数指针形成一个委托。
Our delegate can then be formed over a target, passed around, and then invoked at some point in the future.
我们的委托可以通过一个目标形成、传递并在将来适当的时候被调用。
While the target variable is guaranteed to be only assigned once, the delegate may be called by multiple concurrent threads unless a synchronization object is passed in.
这保证了目标变量只会设置一次。不过,如果没有使用同步对象的话,委托可能会被几个并发线程调用多次。
Inside a multicast delegate invocation, each target is called in succession.
在多播委托的内部,每个对象会被连续的调用。
When this option is selected, the delegate calls on the CDI target to resume its execution with the ICDISignal corresponding to the selected signal.
当选中该选项时,delegate调用CDI目标并使用与所选信号相对应的IC DISignal恢复执行。
This strategy means that the control does not need to maintain a list of target objects for event notification-the delegate handles all registration and notification.
此策略意味着控件不需要维护事件通知的目标对象列表——委托可处理所有的注册和通知。
This strategy means that the control does not need to maintain a list of target objects for event notification-the delegate handles all registration and notification.
此策略意味着控件不需要维护事件通知的目标对象列表——委托可处理所有的注册和通知。
应用推荐