Rational.Equality Operator (Int32, Rational)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns a value that indicates whether an integer is equal to a rational number.

Namespace:  Microsoft.SolverFoundation.Common
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)


Public Shared Operator = ( _
    n As Integer, _
    rat As Rational _
) As Boolean
public static bool operator ==(
    int n,
    Rational rat
static bool operator ==(
    int n, 
    Rational rat
static let inline (=)
        n:int * 
        rat:Rational  : bool
JScript does not support overloaded operators.


Return Value

Type: System.Boolean
true if the n parameter is equal to the rat parameter; otherwise, false.

.NET Framework Security

See Also


Rational Structure

Equality Overload

Microsoft.SolverFoundation.Common Namespace