BigInteger.TryFactorial Method

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

Computes the factorial of a big integer. A return value indicates whether the computation succeeded.

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

Syntax

'Declaration
Public Shared Function TryFactorial ( _
    bn As BigInteger, _
    <OutAttribute> ByRef bnRes As BigInteger _
) As Boolean
public static bool TryFactorial(
    BigInteger bn,
    out BigInteger bnRes
)
public:
static bool TryFactorial(
    BigInteger bn, 
    [OutAttribute] BigInteger% bnRes
)
static member TryFactorial : 
        bn:BigInteger * 
        bnRes:BigInteger byref -> bool 
public static function TryFactorial(
    bn : BigInteger, 
    bnRes : BigInteger
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the factorial of bnBase computed and stored as a BigInteger value in the bnRes parameter; otherwise, false.

.NET Framework Security

See Also

Reference

BigInteger Structure

Microsoft.SolverFoundation.Common Namespace