Class StructUtilityExtensions
This is an extension implementation of the most common methods on the StructUtility class.
Inheritance
System.Object
StructUtilityExtensions
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class StructUtilityExtensions
Methods
| Improve this DocGetHashCode32<T>(IEnumerable<T>)
Computes a suitable hash code from the specified sequence of convertibles.
Declaration
public static int GetHashCode32<T>(this 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 |
Type Parameters
| Name | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
GetHashCode64<T>(IEnumerable<T>)
Computes a suitable hash code from the specified sequence of convertibles.
Declaration
public static long GetHashCode64<T>(this 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.Int64 | A 64-bit signed integer that is the hash code of |
Type Parameters
| Name | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|