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

From DiceRoller Documentation
(Created page with "{{APIdoc|RollResult Operator == (RollResult, RollResult)}} Compare two RollResults and return whether or not they are equal. Implements RollResult == RollResult. {{ns}} == S...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{APIdoc|RollResult Operator == (RollResult, RollResult)}}
+
{{APIdoc|1=RollResult.operator == Method (RollResult, RollResult)}}
 
Compare two RollResults and return whether or not they are equal. Implements RollResult == RollResult.
 
Compare two RollResults and return whether or not they are equal. Implements RollResult == RollResult.
  

Latest revision as of 17:37, 25 April 2017

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.