< Dice | RollResult
RollResult Constructor (ResultType, decimal, IReadOnlyList<DieResult>, DiceAST)
From DiceRoller Documentation
Constructs a new instance of RollResult.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
internal RollResult(
ResultType resultType,
decimal value,
IReadOnlyList<DieResult> values,
DiceAST rollRoot
)
Parameters
- resultType
- Type: Dice.ResultType
- The type of this RollResult.
- value
- Type: System.Decimal
- The overall value of the roll.
- values
- Type: System.Collections.Generic.IReadOnlyList<Dice.DieResult>
- The individual results of each die rolled.
- rollRoot
- Type: Dice.AST.DiceAST
- The root of the dice expression's AST.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | values or rollRoot is null .
|