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...")
 
 
Line 7: Line 7:
 
<syntaxhighlight lang="C#">
 
<syntaxhighlight lang="C#">
 
public DieResult(
 
public DieResult(
     string texgt
+
     string text
 
)
 
)
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest 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 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.