MacroContext.Value Property

From DiceRoller Documentation

Gets or sets the result of the macro.

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

Syntax

public decimal Value { get; set; }

Property Value

Type: System.Decimal

The result of the macro.

Remarks

If none of the macro callbacks set Value to something other than Decimal.MinValue, a DiceException being thrown with DiceErrorCode.InvalidMacro. This indicates that the user specified an unrecognized macro, and does not necessarily indicate an error in your code.