Class TagLabelComparer
IEqualityComparer<T> implementation that compares tags by their string value with case sensitivity.
Implements
Namespace: Tableau.Migration.Content
Assembly: Tableau.Migration.dll
Syntax
public class TagLabelComparer : IEqualityComparer<ITag>
Fields
Instance
A singleton instance of the comparer.
Declaration
public static readonly TagLabelComparer Instance
Field Value
Type | Description |
---|---|
TagLabelComparer |
Methods
Equals(ITag?, ITag?)
Determines whether the specified objects are equal.
Declaration
public bool Equals(ITag? x, ITag? y)
Parameters
Type | Name | Description |
---|---|---|
ITag | x | The first object to compare. |
ITag | y | The second object to compare. |
Returns
Type | Description |
---|---|
bool | True if the specified objects are equal; otherwise, false. |
GetHashCode(ITag)
Returns a hash code for the specified object.
Declaration
public int GetHashCode(ITag obj)
Parameters
Type | Name | Description |
---|---|---|
ITag | obj | The object for which a hash code is to be returned. |
Returns
Type | Description |
---|---|
int | A hash code for the specified object. |