Difference between revisions of "Dice/DieResult/Equals (DieResult)"
From DiceRoller Documentation
(Created page with "{{APIdoc|DieResult.Equals Method (DieResult)}} Compare two DieResults and return whether or not they are equal. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public bool E...") |
m |
||
Line 7: | Line 7: | ||
<syntaxhighlight lang="C#"> | <syntaxhighlight lang="C#"> | ||
public bool Equals( | public bool Equals( | ||
− | DieResult | + | DieResult d |
) | ) | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 17:59, 25 April 2017
Compare two DieResults and return whether or not they are equal.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
public bool Equals(
DieResult d
)
Parameters
- d
- Type: Dice.DieResult
- The DieResult to compare against
Return Value
Type: System.Boolean
true
if d is equal to the current DieResult, and false
otherwise.
Remarks
This method compares the following fields:
Any field not listed above is not part of the comparison, and thus is not considered when determining whether or not two DieResults are equal.