/// Represents an integer value that is either 1 or 0
/// to be stored in or retrieved from a database.
/// </summary>
+#if NET_2_0
+ [SerializableAttribute]
+ [XmlSchemaProvider ("GetXsdType")]
+#endif
public struct SqlBoolean : INullable, IComparable
#if NET_2_0
, IXmlSerializable
{
if (!(value is SqlBoolean))
return false;
- if (this.IsNull && ((SqlBoolean)value).IsNull)
- return true;
+ if (this.IsNull)
+ return ((SqlBoolean)value).IsNull;
else if (((SqlBoolean)value).IsNull)
return false;
else
return (x > y);
}
- public static SqlBoolean GreaterThanOrEqual (SqlBoolean x, SqlBoolean y)
+ public static SqlBoolean GreaterThanOrEquals (SqlBoolean x, SqlBoolean y)
{
return (x >= y);
}
return (x < y);
}
- public static SqlBoolean LessThanOrEqual (SqlBoolean x, SqlBoolean y)
+ public static SqlBoolean LessThanOrEquals (SqlBoolean x, SqlBoolean y)
{
return (x <= y);
}