查询
1 词典释义:
function delegate
时间: 2025-01-28 10:20:21
英 [ˈfʌŋ(k)ʃ(ə)n ˈdɛlɪɡət]
美 [ˈfəŋ(k)ʃ(ə)n ˈdɛləɡət]

函数委托

双语例句
  • Then, when the function delegate is invoked the specified method of the specified instance is called.

    接着,调用此函数委托时,将调用指定实例的指定方法。

  • 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.

    这构造器用来通过一个目标对象和一个函数指针形成一个委托。

  • Note that the handler function must have the signature defined by the delegate.

    注意该处理器函数必须具备由委托定义的签名。

  • An anonymous function is defined within the context of another function, usually by assigning it to a delegate variable.

    匿名函数通常通过分配到一个代理变量,来在其他函数的上下文中定义。

  • Depending on your class, you may also want to delegate part of the computation to the equals() or hashCode() function of the superclass.

    根据您使用的类,您可能希望降低superclass的 equals() 或 hashCode() 功能一部分计算能力。

  • EventHandler is a delegate for a function that takes an Object (the sender) and eventargs.

    这里EventHandler是某个函数的委托,该函数带有参数:Object(也就是sender)和eventargs。

  • To use Delegate, you need to attach some function to it.

    要使用委派,你需要一些附加功能,给它。

  • The main reason is that I can delegate the error handling in one single place: in my main function, where all my exceptions will be caught.

    最主要的原因是,我可以委托在一个地方的错误处理:在我的主要职能,在我所有的异常都会被捕获。

  • 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.

    另外,函数指针只包含对特定函数的引用,而委托由对对象的引用以及对该对象内一个或多个方法的引用组成。

  • The . funcptr property of a delegate will return the function pointer value as a function type.

    函数指针和委托可能会合并到一个统一的语法中并且可以互相代替。

  • 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。

  • Multicast delegates wrap all the functions that have been added to the delegate in a single function call.

    多播委托将添加给委托的所有方法包装在一个单独的方法调用里面。

  • Ensure that the garbage collector does not reclaim the delegate before the callback function completes its work.

    确保在回调函数完成其工作之前,垃圾回收器不会回收委托。

  • A delegate is thus equivalent to a type-safe function pointer or a callback.

    这样,委托就等效于一个类型安全函数指针或一个回调。

  • If, however, the callback function can be invoked after the call returns, the managed caller must take steps to ensure that the delegate remains uncollected until the callback function finishes.

    然而,如果可以在调用返回后调用回调函数,则托管调用方必须采取相应的措施来确保委托在回调函数完成其工作之前不会被回收。

  • The probability of the failure depends on the time between marshaling the delegate and the callback on the function pointer as well as the frequency of garbage collections.

    该故障发生的可能性取决于从封送委托到对函数指针发出回调之间的时间以及垃圾回收的频率。

  • When you are passing Function as parameter, it is known as Delegate.

    当你作为参数传递功能,它被称为代表。