Open sandboxFocus

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, IEquatable<IDeclaration>, 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.

ToRef()

Extension Methods