Show / Hide Table of Contents

    Class StructUtility

    This utility class is designed to make common struct related operations easier to work with.

    Inheritance
    System.Object
    StructUtility
    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public static class StructUtility

    Fields

    | Improve this Doc

    HashCodeForNullValue

    A hash code representation for a null value.

    Declaration
    public const int HashCodeForNullValue = -1
    Field Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc

    GetHashCode32<T>(IEnumerable<T>)

    Computes a suitable hash code from the specified sequence of convertibles.

    Declaration
    public static int GetHashCode32<T>(IEnumerable<T> convertibles)
        where T : struct, IConvertible
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> convertibles

    A sequence of structs implementing the System.IConvertible interface.

    Returns
    Type Description
    System.Int32

    A 32-bit signed integer that is the hash code of convertibles.

    Type Parameters
    Name Description
    T
    Exceptions
    Type Condition
    System.ArgumentNullException

    convertibles is null.

    | Improve this Doc

    GetHashCode64<T>(IEnumerable<T>)

    Computes a suitable hash code from the specified sequence of convertibles.

    Declaration
    public static long GetHashCode64<T>(IEnumerable<T> convertibles)
        where T : IConvertible
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> convertibles

    A sequence of structs implementing the System.IConvertible interface.

    Returns
    Type Description
    System.Int64

    A 64-bit signed integer that is the hash code of convertibles.

    Type Parameters
    Name Description
    T
    Exceptions
    Type Condition
    System.ArgumentNullException

    convertibles is null.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX