2 using System.Collections.Generic;
9 public Dictionary<T, ushort> map = new Dictionary<T, ushort>();
10 public List<T> ary = new List<T>();
18 public ushort Add(T v)
22 if (map.TryGetValue(v, out n))
25 n = (ushort)ary.Count;
31 public int Count { get { return ary.Count; } }
32 public ushort this[T index] { get { return map[index]; } }