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.