AsList(IStatement)
Wraps a given IStatement into a singleton IStatementList.
Declaration
public static IStatementList AsList(this IStatement statement)Parameters
| Type | Name | Description |
|---|---|---|
| IStatement | statement | The statement to wrap. |
Returns
| Type | Description |
|---|---|
| IStatementList | A statement list containing the single statement. |
AsList(IEnumerable<IStatement>)
Wraps a list of IStatement into an IStatementList.
Declaration
public static IStatementList AsList(this IEnumerable<IStatement> statements)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IStatement> | statements | The statements to wrap. |
Returns
| Type | Description |
|---|---|
| IStatementList | A statement list containing all the statements. |