ienumerator
Access Enumerator within a foreach loop?
I have a List class, and I would like to override GetEnumerator() to return my own Enumerator class. This Enumerator class would have two additional properties that would be updated as the Enumerator[详细]
2022-12-13 11:45 分类:问答Return an empty IEnumerator
开发者_StackOverflow中文版I have an interface that, among other things, implements a \"public IEnumerator GetEnumerator()\" method, so I can use the interface in a foreach statement.[详细]
2022-12-11 16:35 分类:问答Why doesn't .NET have a bidirectional enumerator?
It\'s been asked a couple of times on SO how you can implement a bidirectional enumerator (here, here). My question is not how (which is tri开发者_运维问答vial for most cases), but why no such type ex[详细]
2022-12-09 03:48 分类:问答Is it possible to get an IEnumerator<T> from a T[]?
Let\'s say I want to create a collection class that is thread-safe by default. Internally, the class has a protected List<T> property called Values.[详细]
2022-12-08 09:12 分类:问答Convert CollectionBase to List or data type usable with Linq
I am using Aspose cells to manipulate Excel spreadsheets. One of the types in the API is a collection of Pictures in the spreadsheet, which derives from CollectionBase:[详细]
2022-12-08 00:44 分类:问答
加载中,请稍侯......