+2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
+ * SqlString.cs: change accessibility of CompareOptions property
+ to private, commented out unreachable code
+
2004-04-12 Atsushi Enomoto <atsushi@ximian.com>
* SqlBoolean.cs : Allow "0" and "1" on Parse(). Allow SqlString.Null
}
}
- public CompareOptions CompareOptions {
- get {
- return
- (this.compareOptions & SqlCompareOptions.BinarySort) != 0 ?
- CompareOptions.Ordinal :
- // 27 == all SqlCompareOptions - BinarySort
- // (1,2,8,24 are common to CompareOptions)
- (CompareOptions) ((int) this.compareOptions & 27);
- }
- }
-
public bool IsNull {
get { return !notNull; }
}
}
}
- #endregion // Public Properties
+ #endregion // Public Properties\r
+\r
+ #region Private Properties\r
+\r
+ private CompareOptions CompareOptions {\r
+ get {\r
+ return\r
+ (this.compareOptions & SqlCompareOptions.BinarySort) != 0 ?\r
+ CompareOptions.Ordinal :\r
+ // 27 == all SqlCompareOptions - BinarySort \r
+ // (1,2,8,24 are common to CompareOptions)\r
+ (CompareOptions)((int)this.compareOptions & 27);\r
+ }\r
+ }\r
+\r
+ #endregion Private Properties
#region Public Methods
return Null;
else
return new SqlString (x.Value.ToString ());
- return new SqlString (x.Value.ToString ("N", DecimalFormat));
+ // return new SqlString (x.Value.ToString ("N", DecimalFormat));
}
public static explicit operator SqlString (SqlDouble x)
return Null;
else
return new SqlString (x.Value.ToString ());
- return new SqlString (x.Value.ToString ("N", MoneyFormat));
+ // return new SqlString (x.Value.ToString ("N", MoneyFormat));
}
public static explicit operator SqlString (SqlSingle x)