Rational.Addition Operator
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds two rational numbers.
Namespace: Microsoft.SolverFoundation.Common
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Shared Operator + ( _
rat1 As Rational, _
rat2 As Rational _
) As Rational
public static Rational operator +(
Rational rat1,
Rational rat2
)
public:
static Rational operator +(
Rational rat1,
Rational rat2
)
static let inline (+)
rat1:Rational *
rat2:Rational : Rational
JScript does not support overloaded operators.
Parameters
- rat1
Type: Microsoft.SolverFoundation.Common.Rational
The first value to add.
- rat2
Type: Microsoft.SolverFoundation.Common.Rational
The second value to add.
Return Value
Type: Microsoft.SolverFoundation.Common.Rational
The sum of rat1 and rat2.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.