SetOptions<TDeclaration, TOptions>(IQuery<TDeclaration>, Func<TDeclaration, TOptions>)
Sets options for the declarations in the current set of declarations by supplying a Func<TResult>.
Declaration
public static void SetOptions<TDeclaration, TOptions>(this IQuery<TDeclaration> query, Func<TDeclaration, TOptions> getOptions) where TDeclaration : class, IDeclaration where TOptions : class, IHierarchicalOptions, IHierarchicalOptions<TDeclaration>, new()Parameters
| Type | Name | Description |
|---|---|---|
| IQuery<TDeclaration> | query | The declarations for which the options must be set. |
| Func<TDeclaration, TOptions> | getOptions | A function giving the options for the given declaration. |
Type Parameters
| Name | Description |
|---|---|
| TDeclaration | The type of declarations selected by the query. |
| TOptions | The type of options. |
Remarks
This method should only set the option properties that need to be changed. All unchanged properties must be let null.
SetOptions<TDeclaration, TOptions>(IQuery<TDeclaration>, TOptions)
Sets options for the declarations in the current set of declarations by supplying a Func<TResult>.
Declaration
public static void SetOptions<TDeclaration, TOptions>(this IQuery<TDeclaration> query, TOptions options) where TDeclaration : class, IDeclaration where TOptions : class, IHierarchicalOptions, IHierarchicalOptions<TDeclaration>, new()Parameters
| Type | Name | Description |
|---|---|---|
| IQuery<TDeclaration> | query | The declarations for which the options must be set. |
| TOptions | options | The options. |
Type Parameters
| Name | Description |
|---|---|
| TDeclaration | The type of declarations selected by the query. |
| TOptions | The type of options. |
Remarks
This method should only set the option properties that need to be changed. All unchanged properties must be let null.
SetOptions<TDeclaration, TTag, TOptions>(ITaggedQuery<TDeclaration, TTag>, Func<TDeclaration, TTag, TOptions>)
Sets options for the declarations in the current set of declarations by supplying a Func<TResult>.
Declaration
public static void SetOptions<TDeclaration, TTag, TOptions>(this ITaggedQuery<TDeclaration, TTag> query, Func<TDeclaration, TTag, TOptions> getOptions) where TDeclaration : class, IDeclaration where TOptions : class, IHierarchicalOptions, IHierarchicalOptions<TDeclaration>, new()Parameters
| Type | Name | Description |
|---|---|---|
| ITaggedQuery<TDeclaration, TTag> | query | The declarations for which the options must be set. |
| Func<TDeclaration, TTag, TOptions> | getOptions | A function giving the options for the given declaration. |
Type Parameters
| Name | Description |
|---|---|
| TDeclaration | The type of declarations selected by the query. |
| TTag | The type of the tag. |
| TOptions | The type of options. |
Remarks
This method should only set the option properties that need to be changed. All unchanged properties must be let null.