IdeaBlade DevForce 2010 Help Reference
CompareTo Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > Entity Class : CompareTo Method



obj
Object to compare with this instance
Base implementation of System.IComparable.CompareTo(System.Object).

Syntax

Visual Basic (Declaration) 
Public Overridable Function CompareTo( _
   ByVal obj As Object _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As Entity
Dim obj As Object
Dim value As Integer
 
value = instance.CompareTo(obj)
C# 
public virtual int CompareTo( 
   object obj
)
C++/CLI 
public:
virtual int CompareTo( 
   Object^ obj
) 

Parameters

obj
Object to compare with this instance

Remarks

This will compare Entities by EntityKey. Derived classes can override this implementation as needed to modify the default sort order of objects of this type.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.