Exemplo n.º 1
0
 protected Expression <Func <TModel[], TColumn> > ArrayIndexExpression(TModel[] source, int rowIndex)
 {
     return
         ((Expression <Func <TModel[], TColumn> >)
          InstanceToIndexExpressionMaker <TModel> .Replace(rowIndex, ColumnDefinition));
 }
        protected Expression <Func <TModel[], TColumn> > ArrayIndexExpression(TModel[] source, int rowIndex)
        {
            var visitor = new InstanceToIndexExpressionMaker <TModel>(rowIndex);

            return((Expression <Func <TModel[], TColumn> >)visitor.Visit(ColumnDefinition));
        }