Difference between revisions of "Dice/RollResult/Equals (Object)"

From DiceRoller Documentation
(Created page with "{{APIdoc|RollResult.Equals Method (Object)}} Compare two RollResults and return whether or not they are equal. Overridden from Object.Equals(Object). {{ns}} == Syntax == <sy...")
 
(No difference)

Latest revision as of 17:34, 25 April 2017

Compare two RollResults and return whether or not they are equal. Overridden from Object.Equals(Object).

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

Syntax

public override bool Equals(
    Object r
)

Parameters

r
Type: System.Object
The RollResult to compare against.

Return Value

Type: System.Boolean

If r is an instance of RollResult (or a subclass), true if r is equal to the current RollResult, and false otherwise. If r is not an instance of RollResult (or a subclass), returns false.

Remarks

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