| Parameter | Description |
|---|---|
| other | The table reference to compare with this one. |
bool
true if both references identify the same collection; otherwise, false.
Checks whether this reference identifies the same collection as another.
References compare the way they resolve: a GUID reference compares by GUID and ignores any name text (the GUID
wins during resolution too), and a name reference compares by ordinal name. References of different forms are
not equal. Because TableReference.FromGuid canonicalizes its input, a dashed or differently cased GUID
compares equal to its plain hex form. Empty references are equal to each other.
<para>Compare a name reference against a GUID reference for the same collection.</para>
using Unity.Localization;
namespace Unity.Localization.Samples { public class TableReferenceEqualsExample { public bool Run(string guid) { TableReference a = "UI Text"; TableReference b = TableReference.FromGuid(guid); return a.Equals(b); } } }
| Parameter | Description |
|---|---|
| obj | The object to compare with this reference. |
bool
true if obj is a table reference that identifies the same collection; otherwise, false.
Checks whether this reference equals another object.
Returns false when obj is not a TableReference. Otherwise, defers to
TableReference.Equals for value comparison.
<para>Compare against a boxed reference.</para>
using Unity.Localization;
namespace Unity.Localization.Samples { public class TableReferenceEqualsObjectExample { public bool Run(TableReference myReference) { object boxed = (TableReference)"UI Text"; return myReference.Equals(boxed); } } }