예제 #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)));
        }
예제 #2
0
 protected TypedList(NumberList <int> indices, Func <int, TItem> toInstance, Func <TItem, int> toIndex)
 {
     _inner      = indices;
     _toInstance = toInstance;
     _toIndex    = toIndex;
 }