namespace OxyPlot.WindowsForms { using System; using System.Collections.Generic; using System.Text; public class HashSet { private readonly Dictionary set = new Dictionary(); public bool Add(T value) { if (set.ContainsKey(value)) return true; set.Add(value, null); return false; } public bool Contains(T value) { return set.ContainsKey(value); } public void Clear() { set.Clear(); } } }