Click or drag to resize
FieldUtilitiesCalculateHashCodeForValue Method
Overload List
  NameDescription
Public methodStatic memberCalculateHashCodeForValue(Object)
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. If the value is a byte array and the length is equal or smaller than 65535, all values are added, multiplied with the index.
Public methodStatic memberCalculateHashCodeForValue(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.
Top
See Also