WithTemplateProvider<TDeclaration>(IAdviser<TDeclaration>, ITemplateProvider)
Gets an IAdviser<T> with a different template provider, provided as an ITemplateProvider.
Declaration
public static IAdviser<TDeclaration> WithTemplateProvider<TDeclaration>(this IAdviser<TDeclaration> adviser, ITemplateProvider templateProvider) where TDeclaration : class, IDeclarationParameters
| Type | Name | Description |
|---|---|---|
| IAdviser<TDeclaration> | adviser | The current IAdviser<T>. |
| ITemplateProvider | templateProvider | The new ITemplateProvider. |
Returns
| Type | Description |
|---|---|
| IAdviser<TDeclaration> | A new adviser for the current declaration, using |
Type Parameters
| Name | Description |
|---|---|
| TDeclaration | The type of declaration advised by the current IAdviser<T>. |
WithTemplateProvider<TDeclaration>(IAdviser<TDeclaration>, in TemplateProvider)
Gets an IAdviser<T> with a different template provider, specified as a TemplateProvider.
Declaration
public static IAdviser<TDeclaration> WithTemplateProvider<TDeclaration>(this IAdviser<TDeclaration> adviser, in TemplateProvider templateProvider) where TDeclaration : class, IDeclarationParameters
| Type | Name | Description |
|---|---|---|
| IAdviser<TDeclaration> | adviser | The current IAdviser<T>. |
| TemplateProvider | templateProvider | The new TemplateProvider. |
Returns
| Type | Description |
|---|---|
| IAdviser<TDeclaration> | A new adviser for the current declaration, using |
Type Parameters
| Name | Description |
|---|---|
| TDeclaration | The type of declaration advised by the current IAdviser<T>. |