Search Results for

    Show / Hide Table of Contents

    Class CustomHashComparer

    A custom hash comparer for comparing strings added particularly for MAUI hybrid globalization.

    Inheritance
    System.Object
    System.Collections.Generic.EqualityComparer<System.String>
    CustomHashComparer
    Implements
    System.Collections.IEqualityComparer
    System.Collections.Generic.IEqualityComparer<System.String>
    Inherited Members
    System.Collections.Generic.EqualityComparer<System.String>.System.Collections.IEqualityComparer.GetHashCode(System.Object)
    System.Collections.Generic.EqualityComparer<System.String>.System.Collections.IEqualityComparer.Equals(System.Object, System.Object)
    System.Collections.Generic.EqualityComparer<System.String>.Default
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class CustomHashComparer : EqualityComparer<string>, IEqualityComparer, IEqualityComparer<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

    true if the specified strings are equal; otherwise, false.

    Overrides
    System.Collections.Generic.EqualityComparer<System.String>.Equals(System.String, System.String)

    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.

    Overrides
    System.Collections.Generic.EqualityComparer<System.String>.GetHashCode(System.String)

    Implements

    System.Collections.IEqualityComparer
    System.Collections.Generic.IEqualityComparer<T>
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.24.3