TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
che mcneil
NA
5
1.4k
INTERFACE Enumerable Enumerator
Nov 20 2018 11:05 AM
am newbie to programming gets this error expecting a variable
why?? Can someone show me the proper way to do this thank you!
CODE
public class EnumerableEnumerator : IEnumerable, IEnumerator
{
public string[] _people;
public string Currents;
int position = -1;
IEnumerator IEnumerable.GetEnumerator()
{
return (EnumerableEnumerator).GetEnumerator();
}
public bool MoveNext()
{
position++;
return (position < _people.Length);
}
public void Reset()
{
position = -1;
}
object IEnumerator.Current
{
get
{
return Currents;
}
}
}
Reply
Answers (
1
)
A Big Array Problem
Git Certificate Error in Visual Studio 2017