Example #1
0
        public static TypedList <TItem> Get(Table <TItem> table, IColumn <NumberList <int> > column, int index)
        {
            NumberList <int> indices = column[index];

            return(indices == null ? null : new TypedList <TItem>(indices, (i) => table.Get(i), (v) => table.LocalIndex(v)));
        }
Example #2
0
 protected TypedList(NumberList <int> indices, Func <int, TItem> toInstance, Func <TItem, int> toIndex)
 {
     _inner      = indices;
     _toInstance = toInstance;
     _toIndex    = toIndex;
 }