Compares the current instance with another object of the same type.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public int CompareTo( Object obj )
Public Function CompareTo ( obj As Object ) As Integer
public: virtual int CompareTo( Object^ obj ) sealed
abstract CompareTo : obj : Object -> int override CompareTo : obj : Object -> int
Parameters
- obj (Object)
- An object to compare with this instance.
Return Value
Int32
Returns 0 if two objects are equal, returns negative value if this object is less, returns positive value if this object is grater.
Returns 0 if two objects are equal, returns negative value if this object is less, returns positive value if this object is grater.
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119