< Dice‎ | RollResult
Revision as of 17:31, 25 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|RollResult.Equals Method (RollResult)}} Compare two RollResults and return whether or not they are equal. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public vir...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RollResult.Equals Method (RollResult)

From DiceRoller Documentation

Compare two RollResults and return whether or not they are equal.

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

Syntax

public virtual bool Equals(
    RollResult r
)

Parameters

r
Type: Dice.RollResult
The RollResult to compare against

Return Value

Type: System.Boolean

true if r is equal to the current RollResult, 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 RollResults are equal.