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 DocHashCodeForNullValue
A hash code representation for a null value.
Declaration
public const int HashCodeForNullValue = -1
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this DocGetHashCode32<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 |
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>(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 |
Type Parameters
Name | Description |
---|---|
T |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|