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 |
IsParams | Gets a value indicating whether the parameter has the params modifier. |
IsReturnParameter | |
IsThis | Gets a value indicating whether the parameter has the this modifier, meaning that the containing method is an extension method. |
Methods
Name | Description |
---|---|
ToParameterInfo() | Gets a ParameterInfo that represents the current parameter at run time. |
ToRef() |