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

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

Latest revision as of 18:00, 25 April 2017

Compare two DieResults 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 d
)

Parameters

d
Type: System.Object
The DieResult to compare against.

Return Value

Type: System.Boolean

If d is an instance of DieResult, true if d is equal to the current DieResult, and false otherwise. If d is not an instance of DieResult, returns false.

Remarks

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