示例#1
0
        static ItemIndexExpression()
        {
            var zero = Constant(0);

            First = new ItemIndexExpression(zero);
            Last  = new ItemIndexExpression(zero, true);
        }
 private static Expression MakeIndex(Expression collection, PropertyInfo count, Expression index)
 => ItemIndexExpression.GetOffset(index, Property(collection, count));
 private static Expression ArrayAccess(Expression array, Expression index)
 => ArrayIndex(array, ItemIndexExpression.GetOffset(index, ArrayLength(array)));