Click or drag to resize

GeneralUtilsValuesAreEqual Method

Compares the two values passed in and checks if they're value-wise the same. This extends 'Equals' in the sense that if the values are arrays it considers them the same if the values of the arrays are the same as well and the length is the same.

Namespace:  SD.Tools.Algorithmia.UtilityClasses
Assembly:  SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.4.0.0 (1.4.19.0529)
Syntax
public static bool ValuesAreEqual(
	Object value1,
	Object value2
)

Parameters

value1
Type: SystemObject
The first value to compare
value2
Type: SystemObject
The second value to compare

Return Value

Type: Boolean
true if the values should be considered equal. If value1 or value2 are null and the other isn't, false is returned. If both are null, true is returned.
Remarks
It assumes the types of value1 and value2 are the same
See Also