12 2012 档案

摘要:Combining lambdas, anonymous methods and events feels natural in C#, and we use them almost as a reflex, they help us to create closures and avoid creating state variables outside the scope of our methods or passing extra state data through event calls.But one thing that come with events is the fact 阅读全文
posted @ 2012-12-19 14:52 架构师聊技术 阅读(115) 评论(0) 推荐(0) 编辑
摘要:In C#, you can't have multiple indexers like you can do in VB, so the following code is not supported: Collapse | Copy Codeclass C{ public Foo Foos[int i] { ... } public Bar Bars[int i] { ... }}On the other hand, exposing internal IEnumerable is not always a desired s... 阅读全文
posted @ 2012-12-19 14:52 架构师聊技术 阅读(101) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示