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

RollResult.Equals Method (Object)

From DiceRoller Documentation

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.