ienumerator
IEnumerator: Is it normal to have an empty Dispose method?
I\'m writing an IEnumerator<T> class to i开发者_开发百科terate over a COM collection I\'m wrappering.I\'ve noticed that IEnumerator<T> extends IDisposable, so I\'m required to implement th[详细]
2023-01-04 07:02 分类:问答How to Implement an Interface that Requires Duplicate Member Names?
I often have to implement some interfaces such as IEnumerable<T> in my code. Each time, when implementing automatically, I encounter the following:[详细]
2023-01-01 15:22 分类:问答Can we use GetEnumerator() without using IEnumerable interface?
I have a class called Primes and this class implements GetEnumerator() without implementing IEnumerable interface.[详细]
2022-12-31 08:08 分类:问答Problems with implementing generic IEnumerator and IComparable
I\'m working on an AVL Tree. The tree itself seems to be working but I need a iterator to walk through the values of the tree. Therefore I tried to implement开发者_StackOverflow中文版 the IEnumerator[详细]
2022-12-30 22:43 分类:问答Why do arrays in .net only implement IEnumerable and not IEnumerable<T>?
I was implementing my own ArrayList class and was left surprised when I realised that public System.Collections.Generic.IEnumerator<T> GetEnumerator() {[详细]
2022-12-29 00:50 分类:问答Why in this example (got from msdn), in GetEnumerator method , new PeopleEnum returns IEnumerator?
Why in this example from MSDN, in GetEnumerator method, PeopleEnum returns IEnumerator? public class Person[详细]
2022-12-26 14:16 分类:问答IEnumerable and IEnumerator in the same class, bad idea?
Is this a bad idea? Private Class GH_DataStructureEnumerator(Of Q As Types.IGH_Goo) Implements IEnumerable(Of Q)[详细]
2022-12-24 08:59 分类:问答How can I debug a binary that has no debugging symbols?
I have an executable that re开发者_StackOverflowmained from a previous programmer ( and no source code is available ). The thing is, it started to work kind of buggy and I\'m trying to figure out why.[详细]
2022-12-17 07:23 分类:问答Data model for a small CMS system
I have always wanted to make a small easy to use CMS system just for personal use and training. First thing im going to do is create the data model. So what do I need to get started?[详细]
2022-12-17 07:21 分类:问答Why was GetEnumerator() stored in a separate interface from IEnumerator?
I was wondering why the GetEnumerator() method was factored out of IEnumerator and placed in IEnumerable.It seems to me that it would make more sense to ke开发者_JAVA百科ep all of the enumerator metho[详细]
2022-12-15 02:39 分类:问答