什么是回调? [英] What is a callback?
本文介绍了什么是回调?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是回调,它在C#中是如何实现的?
解决方案
在计算机编程,一个回调的被作为参数一通过可执行code >其他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.
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屋!
查看全文