< Dice‎ | DieResult
Revision as of 19:05, 25 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|DieResult Constructor (SpecialDie)}} Constructs a new DieResult corresponding to the given SpecialDie. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public DieRes...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DieResult Constructor (SpecialDie)

From DiceRoller Documentation

Constructs a new DieResult corresponding to the given SpecialDie.

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

Syntax

public DieResult(
    SpecialDie specialDie
)

Parameters

specialDie
Type: Dice.SpecialDie
The type of special die to create.

Remarks

This constructor initializes DieType to DieType.SpecialDie and sets SpecialDie equal to the passed-in specialDie. It is a convenience constructor versus doing these steps yourself.