什么是回调? [英] What is a callback?

查看:109
本文介绍了什么是回调?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是回调,它在C#中是如何实现的?


解决方案

  

计算机编程,一个回调的被作为参数 >其他code。


  
  

- 维基百科:回调(计算机科学)


C#有代表的用于这一目的。他们大量使用事件使用,作为一个事件可以自动调用附加委托(事件处理程序)的数量。

What's a callback and how is it implemented in C#?

解决方案

In computer programming, a callback is executable code that is passed as an argument to other code.

Wikipedia: Callback (computer science)

C# has delegates for that purpose. They are heavily used with events, as an event can automatically invoke a number of attached delegates (event handlers).

这篇关于什么是回调?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆