C# Class PowerArgs.TableExpression

A document expression that can be used to render a table that is specifically formatted to display in a console window.
Inheritance: IDocumentExpression
Datei anzeigen Open project: adamabdelhamed/PowerArgs

Public Methods

Method Description
Evaluate ( PowerArgs.DocumentRendererContext context ) : ConsoleString

Renders the table given a data context

TableExpression ( PowerArgs.DocumentToken evalToken, List columns, PowerArgs.DocumentExpressionContext context ) : System

Creates a new table expression given a collection evaluation expression and a list of column tokens

Method Details

Evaluate() public method

Renders the table given a data context
public Evaluate ( PowerArgs.DocumentRendererContext context ) : ConsoleString
context PowerArgs.DocumentRendererContext the data context
return ConsoleString

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