Click or drag to resize

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.4.0.0 (5.4.0)
Syntax
public static int CalculateHashCodeForValue(
	Object value,
	bool caseSensitiveStringHashCode
)

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: Int32
the hashcode for the value passed in
See Also