kejpa Posted September 17, 2004 Posted September 17, 2004 Hi, I've got a couple of Collection classes that I would like to use the For..each syntax on to get the items in that collection. What interfaces do I need to implement? What will the implementation look like? Regards /Kejpa Sometimes (more and more rarely though) I miss the good ol' VB6. Quote
Administrators PlausiblyDamp Posted September 17, 2004 Administrators Posted September 17, 2004 If you look under System.Collections there are several interfaces to choose from - depending on your requirements. IEnumerable, ICollection, IDictionary or IList are all possible candidates. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.