IComparable

Overview

Comparer interface; compares a value to another value.

Location


Required Methods


CompareTo

Compare a value to another value; should return 0 if equal, 1 if more, -1 if less.

 

method CompareTo(a: Object): Int32

 

Int32 CompareTo(Object a)

 

func CompareTo(_ a: Object) -> Int32

 

Int32 CompareTo(Object a)

 

Function CompareTo(a As Object) As Int32

Parameters:

  • a: