DieResult.operator == Method (DieResult, DieResult)

From DiceRoller Documentation

Compare two DieResults and return whether or not they are equal. Implements DieResult == DieResult.

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

Syntax

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

Parameters

a
Type: Dice.DieResult
The first DieResult to compare.
b
Type: Dice.DieResult
The second DieResult 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.