< Dice‎ | DieResult
Revision as of 19:06, 25 April 2017 by Skizzerz (talk | contribs) (→‎Syntax)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.