Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / IParameter

Interface IParameter

Represents a parameter of a method or property.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
public interface IParameter : INamedDeclaration, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IHasType

Properties

Name Description
DeclaringMember

Gets the parent IMethod, IConstructor or IProperty.

DefaultValue
Index

Gets the parameter position, or -1 for ReturnParameter.

IsParams

Gets a value indicating whether the parameter has the params modifier.

IsReturnParameter

Methods

Name Description
ToParameterInfo()

Gets a ParameterInfo that represents the current parameter at run time.

Extension Methods

ExpressionFactory.ToExpression(IParameter)
SymbolExtensions.GetSymbol(IParameter)