Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
10 Points
15 Posts
Apr 12, 2012 04:44 PM|LINK
Yup, I can write an extension method for it and I have the IEnmerator implmented:
IEnumerator<Location> IEnumerable<Location>.GetEnumerator() //nothing
{
return _locs.GetEnumerator();
}
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() //nothing
In "string printitout = string.Join(",", test);" the list is in there, I just can't figure out how to make it output as a string value.
nhat11
Member
10 Points
15 Posts
Re: Trying to string.Join an IList and outputting the results to console.
Apr 12, 2012 04:44 PM|LINK
Yup, I can write an extension method for it and I have the IEnmerator implmented:
IEnumerator<Location> IEnumerable<Location>.GetEnumerator() //nothing
{
return _locs.GetEnumerator();
}
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() //nothing
{
return _locs.GetEnumerator();
}
In "string printitout = string.Join(",", test);" the list is in there, I just can't figure out how to make it output as a string value.