MetalamaAPI documentationAspect APIMetalama.​Framework.​AdvisingIAdvice­FactoryIntroduce­Parameter
Open sandboxFocus

IAdviceFactory.IntroduceParameter Method

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
System.String parameterName
IType parameterType
TypedConstant defaultValue
System.Func<IParameter, IConstructor, PullAction> pullAction
System.Collections.Immutable.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
System.String parameterName
System.Type parameterType
TypedConstant defaultValue
System.Func<IParameter, IConstructor, PullAction> pullAction
System.Collections.Immutable.ImmutableArray<AttributeConstruction> attributes
Returns
Type Description
IIntroductionAdviceResult<IParameter>