Skip to content

Instantly share code, notes, and snippets.

@luke161
luke161 / TreeNode.cs
Created May 11, 2017 10:10
Simple tree data structure for use with C# and Unity. Start with a root TreeNode and add children as required.
/**
* TreeNode.cs
* Author: Luke Holland (http://lukeholland.me/)
*/
using System;
using System.Collections.Generic;
public class TreeNode<T>
{