Example #1
0
        public int IdToIdx(int id)
        {
            GroupedDataItem groupedDataItem = (GroupedDataItem)(object)this.GetItem(id);

            if (groupedDataItem == null)
            {
                return(-1);
            }
            return(groupedDataItem._idx);
        }
Example #2
0
        public ItemT GetItem(int id)
        {
            if (id < 0)
            {
                return(null);
            }
            this.BuildCaches();
            GroupedDataItem groupedDataItem = null;

            this.itemCache.TryGetValue(id, out groupedDataItem);
            return((ItemT)groupedDataItem);
        }