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
Afficher le fichier Open project: adamabdelhamed/PowerArgs

Méthodes publiques

Méthode 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 méthode

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

TableExpression() public méthode

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
Résultat System