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.