Difference between revisions of "Dice/DieResult/DieResult (String)"
From DiceRoller Documentation
(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...") |
(No difference)
|
Revision as of 19:06, 25 April 2017
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.