C#
文章平均质量分 90
卡卡不知水
这个作者很懒,什么都没留下…
展开
-
Asynchronous Method Invocation 【翻译】 (三)
Passing parameters to your methodOkay, so calling functions without parameters is not going to take us very far, so I am going to modify my super fancy and sophisticated Foo function to take a few p原创 2011-06-23 20:56:00 · 273 阅读 · 0 评论 -
Asynchronous Method Invocation 【翻译】 (四)
What they don�t want you to know about IAsyncResultYou should be wondering how EndInvoke is able to give us the output parameters and the updated ref parameters. Or, better yet, how EndInvoke is abl原创 2011-06-23 22:06:00 · 358 阅读 · 0 评论 -
Asynchronous Method Invocation 【翻译】 (二)
BeginInvoke() and EndInvoke()So far we saw how to invoke a method without really knowing when it is finished. But with EndInvoke(), it is possible to do a few more things. First of all, EndInvoke wi原创 2011-06-23 12:29:00 · 317 阅读 · 0 评论 -
Asynchronous Method Invocation 【翻译】 (五)
Using the Callback delegate, Hollywood style "Don�t call me I will call you!"At this point, you should understand how parameters can be passed, how to pass state, and understand the fact that your m原创 2011-06-24 00:13:00 · 308 阅读 · 0 评论 -
Asynchronous Method Invocation 【翻译】 (六)
Wait a minute! On which thread is the call-back executed on?After all, the callback is invoked by .NET using your delegate, but still it is .NET that calls this delegate. It is your right and duty t原创 2011-06-24 00:48:00 · 372 阅读 · 0 评论 -
Asynchronous Method Invocation 【翻译】 (一)
IntroductionIn this article, I am going to explain asynchronous method calls and how to use them. After playing with delegates, threads, and asynchronous invocation for so long, it would be a sin原创 2011-06-22 21:36:00 · 385 阅读 · 0 评论