Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code.​Advised / IAdvised­Field­Or­Property­Or­Indexer

Interface IAdvisedFieldOrPropertyOrIndexer

Represents the field, property or indexer being overwritten or introduced. This interface extends IFieldOrPropertyOrIndexer but overrides the GetMethod and SetMethod members to expose their Invoke(Object[]) method.

Namespace: Metalama.Framework.Code.Advised
Assembly: Metalama.Framework.dll
Syntax
public interface IAdvisedFieldOrPropertyOrIndexer : IFieldOrPropertyOrIndexer, IMemberWithAccessors, IMember, IMemberOrNamedType, INamedDeclaration, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IHasType

Properties

Name Description
GetMethod

Gets the method implementing the get semantic. In case of fields, this property returns an object that does not map to source code but allows to add aspects and advice as with a normal method.

SetMethod

Gets the method implementing the set semantic. In case of fields, this property returns an object that does not map to source code but allows to add aspects and advice as with a normal method.