Difference between revisions of "Dice/DieResult/operator =="

From DiceRoller Documentation
(Created page with "{{APIdoc|1=DieResult.operator == Method (DieResult, DieResult)}} Compare two DieResults and return whether or not they are equal. Implements DieResult == DieResult. {{ns}} =...")
 
(No difference)

Latest revision as of 18:01, 25 April 2017

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.