Example usage of a custom delegate in c#
- by Freakishly
Hi,
I found this question on SO about a tree implementation in C#. I have no idea about delegates and I was wondering how the following code could be used to implement a tree. Also, what would be the most efficient way to keep a track of parent nodes?
delegate void TreeVisitor<T>(T nodeData);
class NTree<T>
{
T data;
…