Metalama 1.0 / / Metalama Documentation / Aspect API Documentation / Metalama.​Framework.​Code / IField­Or­Property

Interface IFieldOrProperty

A base interface for IField and IProperty.

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

Properties

Name Description
Invokers

Gets an object that allows to get or set the value of the current field or property.

IsAutoPropertyOrField

Gets a value indicating whether the declaration is an auto-property or a field.

Methods

Name Description
ToFieldOrPropertyInfo()

Gets a FieldOrPropertyInfo that represents the current field or property at run time.

Extension Methods

DeclarationExtensions.Aspects<T>(IDeclaration)
DeclarationExtensions.Annotations<T>(IDeclaration)
DeclarationExtensions.GetClosestNamedType(IDeclaration)
DeclarationExtensions.GetTopNamedType(IDeclaration)
DeclarationExtensions.ForCompilation<T>(T, ICompilation, ReferenceResolutionOptions)
GenericExtensions.IsSelfOrAncestorGeneric(IMemberOrNamedType)
GenericExtensions.GetOriginalDefinition(IDeclaration)
GenericExtensions.GetOriginalDefinition(IMemberOrNamedType)
GenericExtensions.GetOriginalDefinition(IMember)
MemberExtensions.IsOverridable(IMember)
MetricsExtensions.Metrics<TExtensible>(TExtensible)
ExpressionFactory.ToExpression(IFieldOrProperty, IExpression)
SymbolExtensions.GetSymbol(IDeclaration)
PresentingExtensions.AsHyperlink(Object)