Skip to content

Instantly share code, notes, and snippets.

@ismail-koroglu
ismail-koroglu / TreeNode.cs
Created June 4, 2024 20:29 — forked from luke161/TreeNode.cs
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>
{