SetOptions<TOptions>(Func<TDeclaration, TOptions>)
Sets options for the declarations in the current set of declarations by supplying a Func<TResult>.
Declaration
void SetOptions<TOptions>(Func<out TDeclaration, TOptions> func) where TOptions : class, IHierarchicalOptions, IHierarchicalOptions<out TDeclaration>, new()
Parameters
Type | Name | Description |
---|---|---|
Func<TDeclaration, TOptions> | func | A function giving the options for the given declaration. |
Type Parameters
Name | Description |
---|---|
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<TOptions>(TOptions)
Sets options for the declarations in the current set of declarations by supplying a Func<TResult>.
Declaration
void SetOptions<TOptions>(TOptions options) where TOptions : class, IHierarchicalOptions, IHierarchicalOptions<out TDeclaration>, new()
Parameters
Type | Name | Description |
---|---|---|
TOptions | options | The options. |
Type Parameters
Name | Description |
---|---|
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.