using System.Collections.Generic; using System.Collections; using System; using System.Linq; using Aurora.Utils; namespace Aurora.Cursor { public class CursorList : SortedList where T : ICursorObject { public CursorList() { } public CursorList Add(T item) { string id = item.Id; if (item.Id == null) { id = HashUtil.GetHash(new string[] { item.GetHashCode().ToString() }).ToString(); item.Id = id; } this.Add(id, item); return this; } } }