Metalama//API Documentation/Aspect API/Metalama.​Framework.​Advising/IAdvice­Factory/Introduce­Parameter
Open sandboxFocus

Method IntroduceParameter

IntroduceParameter(IConstructor, String, IType, TypedConstant, Func<IParameter, IConstructor, PullAction>, ImmutableArray<AttributeConstruction>)

Declaration
IIntroductionAdviceResult<IParameter> IntroduceParameter(IConstructor constructor, string parameterName, IType parameterType, TypedConstant defaultValue, Func<IParameter, IConstructor, PullAction> pullAction = null, ImmutableArray<AttributeConstruction> attributes = null)
Parameters
Type Name Description
IConstructor constructor
String parameterName
IType parameterType
TypedConstant defaultValue
Func<IParameter, IConstructor, PullAction> pullAction
ImmutableArray<AttributeConstruction> attributes
Returns
Type Description
IIntroductionAdviceResult<IParameter>

IntroduceParameter(IConstructor, String, Type, TypedConstant, Func<IParameter, IConstructor, PullAction>, ImmutableArray<AttributeConstruction>)

Declaration
IIntroductionAdviceResult<IParameter> IntroduceParameter(IConstructor constructor, string parameterName, Type parameterType, TypedConstant defaultValue, Func<IParameter, IConstructor, PullAction> pullAction = null, ImmutableArray<AttributeConstruction> attributes = null)
Parameters
Type Name Description
IConstructor constructor
String parameterName
Type parameterType
TypedConstant defaultValue
Func<IParameter, IConstructor, PullAction> pullAction
ImmutableArray<AttributeConstruction> attributes
Returns
Type Description
IIntroductionAdviceResult<IParameter>