using System.Collections.Generic; namespace FirstGearGames.Utilities.Objects { public static class Arrays { /// /// Adds an entry to a list if it does not exist already. /// /// /// /// public static void AddUnique(this List list, object value) { if (!list.Contains((T)value)) list.Add((T)value); } } }