FromTemplate(TemplateInvocation, object?)
Creates an IStatement obtained by invoking a template specified by a TemplateInvocation.
Declaration
public static IStatement FromTemplate(TemplateInvocation templateInvocation, object? args = null)Parameters
| Type | Name | Description |
|---|---|---|
| TemplateInvocation | templateInvocation | |
| object | args |
Returns
| Type | Description |
|---|---|
| IStatement |
FromTemplate(string, object?)
Creates an IStatement obtained by invoking a template specified by its name and optional arguments.
Declaration
public static IStatement FromTemplate(string templateName, object? args = null)Parameters
| Type | Name | Description |
|---|---|---|
| string | templateName | |
| object | args |
Returns
| Type | Description |
|---|---|
| IStatement |
FromTemplate(string, ITemplateProvider, object?)
Creates an IStatement obtained by invoking a template specified by its name, an ITemplateProvider, and optional arguments.
Declaration
public static IStatement FromTemplate(string templateName, ITemplateProvider templateProvider, object? args = null)Parameters
| Type | Name | Description |
|---|---|---|
| string | templateName | |
| ITemplateProvider | templateProvider | |
| object | args |
Returns
| Type | Description |
|---|---|
| IStatement |
FromTemplate(string, TemplateProvider, object?)
Creates an IStatement obtained by invoking a template specified by its name, a TemplateProvider, and optional arguments.
Declaration
public static IStatement FromTemplate(string templateName, TemplateProvider templateProvider, object? args = null)Parameters
| Type | Name | Description |
|---|---|---|
| string | templateName | |
| TemplateProvider | templateProvider | |
| object | args |
Returns
| Type | Description |
|---|---|
| IStatement |