Difference between revisions of "Dice/DieResult/SpecialDie"
From DiceRoller Documentation
(Created page with "{{APIdoc|DieResult.SpecialDie Property}} Gets or sets what type of special die this is. Calling this is an error if DieType != DieType.SpecialDie. {{ns}} == Syntax == <synta...") |
(No difference)
|
Latest revision as of 18:09, 25 April 2017
Gets or sets what type of special die this is. Calling this is an error if DieType != DieType.SpecialDie.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
public SpecialDie SpecialDie { get; set; }
Property Value
Type: Dice.SpecialDie
The type of special die this is.
Remarks
Attempting to use this property when the DieType is not DieType.SpecialDie results in undefined behavior. This means it could throw an arbitrary exception, or it could silently corrupt the DieResult (if setting), or silently do nothing.