DieResult Constructor (String)

From DiceRoller Documentation

Constructs a new DieResult with DieType SpecialDie.Text and the passed-in data.

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

Syntax

public DieResult(
    string text
)

Parameters

text
Type: System.String
The data for the text die.

Remarks

This constructor initializes DieType to DieType.SpecialDie, SpecialDie to SpecialDie.Text, and sets Data to the passed-in text. It is a convenience constructor versus doing these steps yourself.