IntroduceParameter(IConstructor, string, IType, TypedConstant, Func<IParameter, IConstructor, PullAction>?, ImmutableArray<AttributeConstruction>)
Declaration
[Obsolete("This overload does not work across project boundaries. Use an overload that accepts an IIntroduceConstructorParameterPullStrategy.")]
IIntroductionAdviceResult<IParameter> IntroduceParameter(IConstructor constructor, string parameterName, IType parameterType, TypedConstant defaultValue, Func<IParameter, IConstructor, PullAction>? pullAction, ImmutableArray<AttributeConstruction> attributes = default)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, IType, TypedConstant, IPullStrategy?, ImmutableArray<AttributeConstruction>)
Declaration
IIntroductionAdviceResult<IParameter> IntroduceParameter(IConstructor constructor, string parameterName, IType parameterType, TypedConstant defaultValue, IPullStrategy? pullStrategy = null, ImmutableArray<AttributeConstruction> attributes = default)Parameters
| Type | Name | Description |
|---|---|---|
| IConstructor | constructor | |
| string | parameterName | |
| IType | parameterType | |
| TypedConstant | defaultValue | |
| IPullStrategy | pullStrategy | |
| ImmutableArray<AttributeConstruction> | attributes |
Returns
| Type | Description |
|---|---|
| IIntroductionAdviceResult<IParameter> |
IntroduceParameter(IConstructor, string, Type, TypedConstant, Func<IParameter, IConstructor, PullAction>?, ImmutableArray<AttributeConstruction>)
Declaration
[Obsolete("This overload does not work across project boundaries. Use an overload that accepts an IIntroduceConstructorParameterPullStrategy.")]
IIntroductionAdviceResult<IParameter> IntroduceParameter(IConstructor constructor, string parameterName, Type parameterType, TypedConstant defaultValue, Func<IParameter, IConstructor, PullAction>? pullAction, ImmutableArray<AttributeConstruction> attributes = default)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> |
IntroduceParameter(IConstructor, string, Type, TypedConstant, IPullStrategy?, ImmutableArray<AttributeConstruction>)
Declaration
IIntroductionAdviceResult<IParameter> IntroduceParameter(IConstructor constructor, string parameterName, Type parameterType, TypedConstant defaultValue, IPullStrategy? pullStrategy = null, ImmutableArray<AttributeConstruction> attributes = default)Parameters
| Type | Name | Description |
|---|---|---|
| IConstructor | constructor | |
| string | parameterName | |
| Type | parameterType | |
| TypedConstant | defaultValue | |
| IPullStrategy | pullStrategy | |
| ImmutableArray<AttributeConstruction> | attributes |
Returns
| Type | Description |
|---|---|
| IIntroductionAdviceResult<IParameter> |