< Dice‎ | DieResult
Revision as of 19:06, 25 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|DieResult Constructor (String)}} Constructs a new DieResult with DieType SpecialDie.Text and the passed-in data. {{ns}} == Syntax == <syntaxhighlight lang="C#"> pub...")
(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 texgt
)

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.