Interface IMatchable<T>
Interface implemented to define a form of checking value equality, without guarantees that it corresponds to GetHashCode.
Namespace: SadRogue.Primitives
Assembly: TheSadRogue.Primitives.dll
Syntax
public interface IMatchable<in T>
Type Parameters
Name | Description |
---|---|
T | Type of object being compared. |
Methods
Matches(T)
Returns true if the given object is considered "equal" to the current one, based on the definition of equality for the object.
Declaration
bool Matches(T other)
Parameters
Type | Name | Description |
---|---|---|
T | other | Object to compare to. |
Returns
Type | Description |
---|---|
Boolean | True if the objects are considered equal, false, otherwise. |