IntroduceParameter(IAdviser<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.")]
public static IIntroductionAdviceResult<IParameter> IntroduceParameter(this IAdviser<IConstructor> adviser, string parameterName, IType parameterType, TypedConstant defaultValue, Func<IParameter, IConstructor, PullAction>? pullAction, ImmutableArray<AttributeConstruction> attributes = default)Parameters
| Type | Name | Description |
|---|---|---|
| IAdviser<IConstructor> | adviser | |
| string | parameterName | |
| IType | parameterType | |
| TypedConstant | defaultValue | |
| Func<IParameter, IConstructor, PullAction> | pullAction | |
| ImmutableArray<AttributeConstruction> | attributes |
Returns
| Type | Description |
|---|---|
| IIntroductionAdviceResult<IParameter> |
IntroduceParameter(IAdviser<IConstructor>, string, IType, TypedConstant, IPullStrategy?, ImmutableArray<AttributeConstruction>)
Declaration
public static IIntroductionAdviceResult<IParameter> IntroduceParameter(this IAdviser<IConstructor> adviser, string parameterName, IType parameterType, TypedConstant defaultValue, IPullStrategy? pullStrategy = null, ImmutableArray<AttributeConstruction> attributes = default)Parameters
| Type | Name | Description |
|---|---|---|
| IAdviser<IConstructor> | adviser | |
| string | parameterName | |
| IType | parameterType | |
| TypedConstant | defaultValue | |
| IPullStrategy | pullStrategy | |
| ImmutableArray<AttributeConstruction> | attributes |
Returns
| Type | Description |
|---|---|
| IIntroductionAdviceResult<IParameter> |
IntroduceParameter(IAdviser<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.")]
public static IIntroductionAdviceResult<IParameter> IntroduceParameter(this IAdviser<IConstructor> adviser, string parameterName, Type parameterType, TypedConstant defaultValue, Func<IParameter, IConstructor, PullAction>? pullAction, ImmutableArray<AttributeConstruction> attributes = default)Parameters
| Type | Name | Description |
|---|---|---|
| IAdviser<IConstructor> | adviser | |
| string | parameterName | |
| Type | parameterType | |
| TypedConstant | defaultValue | |
| Func<IParameter, IConstructor, PullAction> | pullAction | |
| ImmutableArray<AttributeConstruction> | attributes |
Returns
| Type | Description |
|---|---|
| IIntroductionAdviceResult<IParameter> |
IntroduceParameter(IAdviser<IConstructor>, string, Type, TypedConstant, IPullStrategy?, ImmutableArray<AttributeConstruction>)
Declaration
public static IIntroductionAdviceResult<IParameter> IntroduceParameter(this IAdviser<IConstructor> adviser, string parameterName, Type parameterType, TypedConstant defaultValue, IPullStrategy? pullStrategy = null, ImmutableArray<AttributeConstruction> attributes = default)Parameters
| Type | Name | Description |
|---|---|---|
| IAdviser<IConstructor> | adviser | |
| string | parameterName | |
| Type | parameterType | |
| TypedConstant | defaultValue | |
| IPullStrategy | pullStrategy | |
| ImmutableArray<AttributeConstruction> | attributes |
Returns
| Type | Description |
|---|---|
| IIntroductionAdviceResult<IParameter> |