UseConstant(TypedConstant)
Creates a PullAction that means that the dependency should be assigned to a given TypedConstant.
Declaration
public static PullAction UseConstant(TypedConstant constant)Parameters
| Type | Name | Description |
|---|---|---|
| TypedConstant | constant | The constant value to use for pulling the dependency. |
Returns
| Type | Description |
|---|---|
| PullAction | A PullAction that uses the specified constant. |
Remarks
This is a convenience method for passing constant values. Use this when all child constructors should
pass the same constant value to the introduced parameter (e.g., UseConstant(TypedConstant.Create(true))).