Npgsql Api Docs |

# BitString.CompareTo Method (Object)

Compares the string with another object.

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

#### Parameters

obj
  The object to compare with.

#### Return Value

If the object is null then this string is considered greater. If the object is another BitString then they are compared as in BitString) in any other case a ArgumentException is thrown.

#### Implements

IComparable.CompareTo

#### See Also

BitString Class | NpgsqlTypes Namespace | BitString.CompareTo Overload List