阅读背景:

在C#中使用Action 作为参数(模仿函数指针)

来源:互联网 

I need to write a delegate function that can 'wrap' some while/try/catch code around a basic UDP call to verify the link. I made it work for Func for a function that has no arguments, but I can't make it work for Action, which has an argument (but no return). I can't seem to pass in the argument in a logical way without the compiler complaining.I need to write a delegate function that can 'w




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: