public int IdToIdx(int id) { GroupedDataItem groupedDataItem = (GroupedDataItem)(object)this.GetItem(id); if (groupedDataItem == null) { return(-1); } return(groupedDataItem._idx); }
public ItemT GetItem(int id) { if (id < 0) { return(null); } this.BuildCaches(); GroupedDataItem groupedDataItem = null; this.itemCache.TryGetValue(id, out groupedDataItem); return((ItemT)groupedDataItem); }