N
Nikolay Podkolzin
Good Noon, Community!
Could you be so nice and help me with my problem, I need To enumerate all
items in List, but, it List contains a Node with next Parameters:
public class Node
{
....
public bool HasSubMenu;
....
}
public class NodeCollection : List<Node>
{
}
And when I enumerate this, and if in the property HasSubMenu is true I need
to recursive enumerate all subMenus. How Could I do that correctly? And When
it meet the hasSubMenu Program have to do indent
Main Menu
Point 1.HasSubMenu = false
Point 2.hasSubMenu = true
point2.1
point2.2 etc...
Its Asp.net Application.
Thanks in advance
Could you be so nice and help me with my problem, I need To enumerate all
items in List, but, it List contains a Node with next Parameters:
public class Node
{
....
public bool HasSubMenu;
....
}
public class NodeCollection : List<Node>
{
}
And when I enumerate this, and if in the property HasSubMenu is true I need
to recursive enumerate all subMenus. How Could I do that correctly? And When
it meet the hasSubMenu Program have to do indent
Main Menu
Point 1.HasSubMenu = false
Point 2.hasSubMenu = true
point2.1
point2.2 etc...
Its Asp.net Application.
Thanks in advance