Rational Implicit Conversion (Int32 to Rational)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Converts an integer to a rational number.
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
'Declaration Public Shared Widening Operator CType ( _ n As Integer _ ) As Rational
public static implicit operator Rational ( int n )
static implicit operator Rational ( int n )
F# does not support the declaration of new casting operators.
JScript does not support the declaration of new casting operators.
An integer value.
A rational number that contains the value of the n parameter.
.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.