FieldUtilitiesCalculateHashCodeForValue Method (Object, Boolean) |
Calculates the hashcode for value passed in. If the value is null, the hashcode of DBNull.Value is used. If the value is an array,
the hashcode is calculated from the individual values: if the length is larger than 65535, or not a byte array, each value's hashcode is xorred with the
previous one up to 65535 values. If the value is a byte array and the length is equal or smaller than 65535, all values are added, multiplied with the index.
If the value is a string, the invariantculture hashcode is retrieved if the length is smaller than 65535. If the length is 65535 or higher, the
string's hashcode is retrieved using the normal GetHashCode method.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax public static int CalculateHashCodeForValue(
Object value,
bool caseSensitiveStringHashCode
)
Public Shared Function CalculateHashCodeForValue (
value As Object,
caseSensitiveStringHashCode As Boolean
) As Integer
Parameters
- value
- Type: SystemObject
The value which hashcode has to be calculated. - caseSensitiveStringHashCode
- Type: SystemBoolean
if set to true, it will produce case sensitive hashcodes for strings, if value is a string.
Return Value
Type:
Int32the hashcode for the value passed in
See Also