Open sandboxFocus

Interface IHierarchicalOptionsManager

Provides read-only access to hierarchical options for a given declaration.

Namespace: Metalama.Framework.Options
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IHierarchicalOptionsManager
Remarks

This interface provides a low-level mechanism to query options for any declaration. In typical usage, options are accessed through the Enhancements<T>(T).GetOptions<TOptions>() extension method, which is more convenient.

The options returned by GetOptions(IDeclaration, Type) are the result of merging all options that apply to the declaration along various inheritance axes (base types, containing types, namespaces, and the project itself). See ApplyChangesAxis for details about the different axes.

Methods

Name Description
GetOptions(IDeclaration, Type)

Gets the merged hierarchical options that apply to a specific declaration.

Extension Methods

See Also