PowerArgs.TableExpression.TableExpression C# (CSharp) Method

TableExpression() public method

Creates a new table expression given a collection evaluation expression and a list of column tokens
public TableExpression ( PowerArgs.DocumentToken evalToken, List columns, PowerArgs.DocumentExpressionContext context ) : System
evalToken PowerArgs.DocumentToken A token containing an expression that should evaluate to an IEnumerable
columns List A list of tokens containing the names of columns to display in the table
context PowerArgs.DocumentExpressionContext Context that is used to determine the indentation of the table within the document
return System
        public TableExpression(DocumentToken evalToken, List<DocumentToken> columns, DocumentExpressionContext context)
        {
            this.EvalToken = evalToken;
            this.Columns = columns;
            this.ShowDefaultValuesForArguments = true;
            this.ShowPossibleValuesForArguments = true;

            this.indent = context.OpenToken.Column - 1;
        }