< Dice‎ | DieResult
Revision as of 18:09, 25 April 2017 by Skizzerz (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DieResult.SpecialDie Property

From DiceRoller Documentation

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.