MetalamaAPI documentationAspect APIMetalama.​Framework.​AspectsIAspect­Receiver<TDeclaration>Set­Options
Open sandboxFocus

IAspectReceiver<TDeclaration>.SetOptions Method

SetOptions<TOptions>(Func<TDeclaration, TOptions>)

Sets options for the declarations in the current set of declarations by supplying a System.Func<>.

Declaration
void SetOptions<TOptions>(Func<TDeclaration, TOptions> func)
where TOptions : class, IHierarchicalOptions, IHierarchicalOptions<TDeclaration>, new()
Parameters
Type Name Description
System.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 System.Func<>.

Declaration
void SetOptions<TOptions>(TOptions options)
where TOptions : class, IHierarchicalOptions, IHierarchicalOptions<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.