NullableTypes Class Library

NullableInt16.CompareTo Method 

Implementation for IComparable interface.

[Visual Basic]
NotOverridable Public Function CompareTo( _
   ByVal value As Object _
) As Integer Implements _
   IComparable.CompareTo
[C#]
public int CompareTo(
   object value
);

Parameters

value
object that it has to be compared to.

Return Value

if this is not null, and argument is not null - CompareTo of short values
If both null - 0 If argument is null - 1
If this is null -1

Implements

IComparable.CompareTo

See Also

NullableInt16 Class | NullableTypes Namespace