Adds two numbers together. The parameters can be of type Number,
Complex, or String. If a certain combination of types is not supported,
an EvaluationException is thrown.
Namespace:
SingularSys.Jep.FunctionsAssembly: Jep (in Jep.dll) Version: 1.1.0.0 (1.0.0)
Syntax
| C# |
|---|
public Object AddOp( Object param1, Object param2 ) |
| Visual Basic (Declaration) |
|---|
Public Function AddOp ( _ param1 As Object, _ param2 As Object _ ) As Object |
| Visual C++ |
|---|
public: Object^ AddOp( Object^ param1, Object^ param2 ) |
Parameters
- param1
- Type: System..::.Object
The first parameter to be added.
- param2
- Type: System..::.Object
The second parameter to be added.
Return Value
The sum of param1 and param2, or concatenation of the two if they are Strings.
Exceptions
| Exception | Condition |
|---|---|
| SingularSys.Jep..::.EvaluationException |