Difference between revisions of "Dice/DieResult/Value"

From DiceRoller Documentation
(Created page with "{{APIdoc|DieResult.Value Field}} If the DieResult represents a die roll, this is the number of sides that die had. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public dec...")
 
m
 
Line 1: Line 1:
{{APIdoc|DieResult.Value Field}}
+
{{APIdoc|DieResult.Value Property}}
 
If the DieResult represents a die roll, this is the number of sides that die had.
 
If the DieResult represents a die roll, this is the number of sides that die had.
  
Line 6: Line 6:
 
== Syntax ==
 
== Syntax ==
 
<syntaxhighlight lang="C#">
 
<syntaxhighlight lang="C#">
public decimal Value
+
public decimal Value { get; set; }
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Field Value ===
+
=== Property Value ===
 
Type: System.Decimal
 
Type: System.Decimal
  

Latest revision as of 05:55, 15 April 2017

If the DieResult represents a die roll, this is the number of sides that die had.

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

Syntax

public decimal Value { get; set; }

Property Value

Type: System.Decimal

What the result of the roll was.

Remarks

If DieType is DieType.Special, this can be safely cast into SpecialDie.