Class CustomHashComparer
A custom hash comparer for comparing strings added particularly for MAUI hybrid globalization.
Inheritance
System.Object
CustomHashComparer
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class CustomHashComparer : EqualityComparer<string>
Methods
Equals(String, String)
Determines whether the specified strings are equal.
Declaration
public override bool Equals(string b1, string b2)
Parameters
Type | Name | Description |
---|---|---|
System.String | b1 | The first string to compare. |
System.String | b2 | The second string to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetHashCode(String)
Returns a hash code for the specified string.
Declaration
public override int GetHashCode(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The string for which to get the hash code. |
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the specified string. |