< Dice‎ | DieResult
Revision as of 18:00, 25 April 2017 by Skizzerz (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DieResult.Equals Method (Object)

From DiceRoller Documentation

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.