public int CompareTo(SqlBoolean value)
{
// If both Null, consider them equal.
// Otherwise, Null is less than anything.
if (IsNull)
return value.IsNull ? 0 : -1;
else if (value.IsNull)
return 1;
if (ByteValue < value.ByteValue) return -1;
if (ByteValue > value.ByteValue) return 1;
return 0;
}