< Dice‎ | RollResult
Revision as of 20:00, 13 April 2017 by Skizzerz (talk | contribs)

RollResult Constructor (DiceAST, Int64)

From DiceRoller Documentation

Constructs a new instance of RollResult.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

internal RollResult(
    DiceAST rollRoot,
    long numRolls
)

Parameters

rollRoot
Type: Dice.AST.DiceAST
The root of the dice expression's AST.
numRolls
Type: System.Int64
The number of dice rolls that were needed to fully evaluate this expression.

Exceptions

Exception Condition
ArgumentNullException rollRoot is null.

Remarks

The RollResult's Value, Values, and ResultType are initialized from the corresponding properties on RollRoot, whereas NumRolls is initialized via numRolls.