Difference between revisions of "Dice/DieResult/DieResult (SpecialDie)"

From DiceRoller Documentation
(Created page with "{{APIdoc|DieResult Constructor (SpecialDie)}} Constructs a new DieResult corresponding to the given SpecialDie. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public DieRes...")
 
(No difference)

Latest revision as of 19:05, 25 April 2017

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.