Interface IEquivalent<TType>
Check if this is equivalent to another "other" object. This is not the same as Equals, as we do not compare the object instance but rather the state of this to "other".
Namespace: InventorySystem.Utils
Assembly: InventorySystem.dll
Syntax
public interface IEquivalent<TType>
Type Parameters
| Name | Description |
|---|---|
| TType | Type of the class implementing this that can be checked for equivalence. |
Methods
| Edit this page View SourceIsEquivalentTo(TType)
Check if this is the same type TType in the same internal state as other TType.
Declaration
bool IsEquivalentTo(TType other)
Parameters
| Type | Name | Description |
|---|---|---|
| TType | other | The object |
Returns
| Type | Description |
|---|---|
| bool | Whether this and other are equivalent in type and internal state. |