[This is preliminary documentation and is subject to change.]
Compares this value to the specified IComparable value
Namespace: Clarion.Framework.CoreAssembly: CLARIONLibrary (in CLARIONLibrary.dll) Version: 6.1.0.7 (6.1.0.7)
Syntax
C# |
---|
public int CompareTo( IComparable val ) |
Parameters
- val
- Type: System..::..IComparable
The value to be compared
Return Value
Greater than 0 = This value is greater than the specified value; 0 = The values are equal; Less than 0 = This value is less than the specified valueImplements
IComparable<(Of <(<'T>)>)>..::..CompareTo(T)
Remarks
This method has been implemented with the following considerations:
- If the specified IComparable value is of the same type as the (inner) value, then the default comparison will be made for that type
- If the specified IComparable is of a different type, then the string representation of the values will be compared