RollResult.operator == Method (RollResult, RollResult)

From DiceRoller Documentation

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

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

Syntax

public static bool operator ==(
    RollResult a,
    RollResult b
)

Parameters

a
Type: Dice.RollResult
The first RollResult to compare.
b
Type: Dice.RollResult
The second RollResult to compare.

Return Value

Type: System.Boolean

true if a and b are equal, and false otherwise.

Remarks

This method calls a.Equals(b) internally. See that method documentation for more information on how the comparison is performed.