Hello! I have a question. I cannot derive from a IEnumerator interface. When I write - class someClass : IEnumerator. It has only the option IEnumerator<>. Which I don't need. I have to iterate over the someClass's subobjects using the foreach keyword.
Thanks
IEnumerator interface
Page 1 of 14 Replies - 217 Views - Last Post: 07 March 2011 - 02:52 AM
Replies To: IEnumerator interface
#2
Re: IEnumerator interface
Posted 07 March 2011 - 02:40 AM
Hi,
You just need to add this using statement to your code:
You just need to add this using statement to your code:
using System.Collections;
#3
Re: IEnumerator interface
Posted 07 March 2011 - 02:44 AM
It has been added. But I don't have a IEnumerator or IEnumerable interfaces. I have IEnumerable<> and IEnumerator<>
Thank you
Thank you
#5
Re: IEnumerator interface
Posted 07 March 2011 - 02:52 AM
Really? If you have that using statement, you should have access to them...
EDIT: Glad you got it working
EDIT: Glad you got it working
This post has been edited by CodingSup3rnatur@l-360: 07 March 2011 - 06:25 AM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|