I’m working on a project that heavily uses TreeView and TreeNodes. However, I need to remove the GUI from the existing program and allow it to run through in the console. I’m new to C# but I’m having trouble finding a similar class without the GUI. What would be the recommended class to implement? From what I understand there is no Tree base class but would I be able to create my own?
Thanks.
Trees are simply
List<Node>s whereNodeis a class containing aList<Node>and any other important Data. How easy it is to implement depends on a lot of things, but you shouldn’t have much trouble:If you so desire you can create a
Tree<T>class that encapsulates some searching/manipulating functions, but that should get you headed in the right direction.