CompareTo Method

Boolean.CompareTo Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Compares this instance to a specified object or Boolean and returns an indication of their relative values.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method CompareTo(Boolean) Compares this instance to a specified Boolean object and returns an integer that indicates their relationship to one another.
Public method CompareTo(Object) Compares this instance to a specified object and returns an integer that indicates their relationship to one another.
Top

Show:
© 2016 Microsoft