Was this page helpful?

GetAlternativeHashCode Extension Method

    GetAlternativeHashCode(this string token)

    public static int GetAlternativeHashCode(this string token);
    Alternative implementation of Object.GetHashCode().

    Parameters

    Name Type Description
    token string Token to hash.

    Returns

    Type: int
    Numeric hashcode.

    GetAlternativeHashCode(this Char[] chars, int offset, int length)

    public static int GetAlternativeHashCode(this Char[] chars, int offset, int length);
    Alternative implementation of Object.GetHashCode().

    Parameters

    Name Type Description
    chars Char[] Characters sequence to hash.
    offset int Offset into sequence to start hash consideration.
    length int Number of characters to consider for hash.

    Returns

    Type: int
    Numeric hashcode.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by