如何在c#中的buuble排序应用程序中使用事件 [英] how to use events in buuble sort application in c#

查看:83
本文介绍了如何在c#中的buuble排序应用程序中使用事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#中使用泛型创建一个apllication,它对字符串和整数进行排序。我可以使用事件吗?我的意思是说我可以在排序完成之后发出一些事件或类似的东西吗?

Iam creating an apllication using generics in c# that sort the strings as well as integers.Can i use events in that? i mean to say can i fire some event say after the sorting is done or some thing like that?

推荐答案


我在c#中使用泛型创建了一个apllication,它对字符串以及整数进行排序。我可以使用事件吗?我的意思是说,我可以解雇一些事件,说排序完成后或类似的事情?
Iam creating an apllication using generics in c# that sort the strings as well as integers.Can i use events in that? i mean to say can i fire some event say after the sorting is done or some thing like that?



当然,您可以创建一个事件,然后在事件完成时发出信号。您也可以使用回调。

Sure, you can create an event then signal that event when it completes. You can also use callbacks.



当然,您可以创建一个事件,然后在事件完成时发出该事件的信号。您也可以使用回调。
Sure, you can create an event then signal that event when it completes. You can also use callbacks.



你可以给我一些例子吗?

Can u provide me some example?



你能提供给我吗?一些例子?
Can u provide me some example?



不,但你可以读到: http://msdn2.microsoft.com/en-us/lib...39(VS.71).aspx


这篇关于如何在c#中的buuble排序应用程序中使用事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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