D
Dave
This code generates the following error:
Error 2 Cannot convert type
'System.Collections.Generic.KeyValuePair<string,CollectionTest.Group>' to
'CollectionTest.Group' C:\Code\Project\CollectionTest.cs 21 4 Project
How do I use foreach to iterate through the Groups collection??
public class Group
{
}
public class Groups : SortedList<string, Group>
{
}
public class TestIt
{
public void Test()
{
Groups groups = new Groups();
foreach (Group group in groups)
{
}
}
}
Error 2 Cannot convert type
'System.Collections.Generic.KeyValuePair<string,CollectionTest.Group>' to
'CollectionTest.Group' C:\Code\Project\CollectionTest.cs 21 4 Project
How do I use foreach to iterate through the Groups collection??
public class Group
{
}
public class Groups : SortedList<string, Group>
{
}
public class TestIt
{
public void Test()
{
Groups groups = new Groups();
foreach (Group group in groups)
{
}
}
}