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.