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
阅读全文
摘要: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...
阅读全文