且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

生成一个C#的委托方法存根

更新时间:2023-02-14 17:41:05

使用一个IDE插件像重构临!它还允许您将委托转换为实例方法,或者它的一个班轮,为lambda。我倾向于开始使用一个lambda打字,然后悬停我的光标在PARMS为您提供了可用的类型。

Use an IDE plugin like Refactor Pro! It also allows you to convert your delegates to instance methods, or if its a one-liner, into a lambda. I tend to start typing using a lambda and then hovering my cursor over the parms gives you the types available.

或者。等到的Visual Studio 10,将所有这一切建成但在此之前使用上述任。)

Or. Wait till Visual Studio 10 which would have this all built in. But until then use either of the aforementioned :)