与显式类装入一样,如果类已经装入了,那么只是返回一个引用;否则,装入器会通过委托模型装入类。
As with explicit class loading, if the class is already loaded, then a reference is simply returned; otherwise, the loader goes through the delegation model to load the class.
如果类已经装入,那么只是返回一个引用;否则,装入器会通过委托模型装入类。
If the class is already loaded, then a reference is simply returned; otherwise, the loader goes through the delegation model to load the class.
委托对象保持对另一个对象的引用,委托方法在恰当的时间向其发送消息。
The delegating object keeps a reference to the other object, the delegate, and at the appropriate time sends a message to it.
Singleton——返回对委托对象单个实例的引用。
Singleton — returns reference to the single instance of the delegate object.
委托是一个方法的引用指针。它允许我们将方法作为一个变量并传递方法作为回调函数的一个变量。
Delegate is a reference pointer to a method. It allows us to treat method as a variable and pass method as a variable for a callback.
委托是包含有对一个方法的引用的对象。
A delegate is an object that contains a reference to a method.
但是除此之外,我还会给你一个方法的引用,那么这就是委托。
Sorry, I'd like to give you a reference to that method, and that's what a delegate is.
使用对该事件处理程序方法的一个引用创建委托的一个实例。
Create an instance of the delegate, using a reference to the event handler method.
委托是一个方法的引用指针。
另外,函数指针只包含对特定函数的引用,而委托由对对象的引用以及对该对象内一个或多个方法的引用组成。
In addition, where a function pointer contains only a reference to a particular function, a delegate consists of a reference to an object, and references to one or more methods within the object.
调用层次结构不会查找方法组引用,这些引用包含将方法添加为事件处理程序或将方法分配给委托的位置。
Call Hierarchy does not find method group references, which includes places where a method is added as an event handler or is assigned to a delegate.
与其他的类不同,委托类具有一个签名,并且它只能对与其签名匹配的方法进行引用。
Unlike other classes, a delegate class has a signature, and it can hold references only to methods that match its signature.
表示一个委托,该委托用于引用将处理窗口消息的方法。
Represents a delegate that is used to reference the method that will handle window messages.
可以使用委托类型来声明一个变量,该变量可以引用与委托签名相同的所有方法。
You can use the delegate type to declare a variable that can refer to any method with the same signature as the delegate.
可以使用委托类型来声明一个变量,该变量可以引用与委托签名相同的所有方法。
You can use the delegate type to declare a variable that can refer to any method with the same signature as the delegate.
应用推荐