Overload the constructor to also set the target indexes at construction

Declaration Syntax
public OperationFredkin(
int ControlIndex,
int FirstSwapIndex,
int SecondSwapIndex
)
Public Sub New ( _
ControlIndex As Integer, _
FirstSwapIndex As Integer, _
SecondSwapIndex As Integer _
)
public:
OperationFredkin(
int ControlIndex,
int FirstSwapIndex,
int SecondSwapIndex
)

Parameters
- ControlIndex (Int32)
- The control index
- FirstSwapIndex (Int32)
- The first swap index
- SecondSwapIndex (Int32)
- The second swap index

Exceptions
Exception | Condition |
---|
DuplicateIndexesException | Thrown if any of the indexes
are duplicates.
|
ArgumentOutOfRangeException | Thrown if any of the indexes
specified are less than 0.
|
Assembly:
Cove.LocalSimulation (Module: Cove.LocalSimulation) Version: 1.0.0.0 (1.0.0.0)