Open sandboxFocus

Interface IAdviser

An object that allows declarations to be advised using one of the extension methods of the AdviserExtensions class. This interface is the non-generic base one. All advisers implement the generic interface IAdviser<T>.

Namespace: Metalama.Framework.Advising
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IAdviser

Properties

Name Description
Diagnostics

Gets a service that allows to report or suppress diagnostics.

Target

Gets the declaration that will be advised.

Methods

Name Description
With<TNewDeclaration>(TNewDeclaration)

Gets a new IAdviser for a different Target declaration.

Extension Methods