MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIParameter
Open sandboxFocus

IParameter Interface

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, IExpression, IHasType

Properties

Name Description
DeclaringMember

Gets the parent IMethod, IConstructor or IIndexer.

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

SymbolExtensions.GetSymbol(IParameter)
ContractExtensions.GetContractOptions(IParameter)