fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
608internal static SqlSingle GetSqlSingle( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) {
609SqlSingle result;
612result = SqlSingle.Null;
624result = (SqlSingle) obj;
1097SqlSingle.Null, // SqlDbType.Real
1534internal static void SetSqlSingle( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlSingle value ) {
1627case ExtendedClrTypeCode.SqlSingle: SetSqlSingle_Unchecked( sink, setters, ordinal, (SqlSingle) value ); break;
3563private static void SetSqlSingle_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SqlSingle value ) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (6)
330else if (dataType == typeof(SqlSingle))
389if (sqlType == typeof(SqlSingle)) return SqlSingle.Null;
430if (sqlVal is SqlSingle)
431comVal = ((SqlSingle)sqlVal).Value;
713(7, 255, 4, true, false, false, TdsEnums.SQLFLT4, TdsEnums.SQLFLTN, MetaTypeName.REAL, typeof(System.Single), typeof(SqlSingle), SqlDbType.Real, DbType.Single, 0);
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (76)
99public static implicit operator SqlSingle(float x) {
107public static explicit operator float(SqlSingle x) {
121public static SqlSingle Parse(String s) {
123return SqlSingle.Null;
133public static SqlSingle operator -(SqlSingle x) {
144public static SqlSingle operator +(SqlSingle x, SqlSingle y) {
159public static SqlSingle operator -(SqlSingle x, SqlSingle y) {
174public static SqlSingle operator *(SqlSingle x, SqlSingle y) {
189public static SqlSingle operator /(SqlSingle x, SqlSingle y) {
212public static explicit operator SqlSingle(SqlBoolean x) {
220public static implicit operator SqlSingle(SqlByte x) {
229public static implicit operator SqlSingle(SqlInt16 x) {
238public static implicit operator SqlSingle(SqlInt32 x) {
247public static implicit operator SqlSingle(SqlInt64 x) {
256public static implicit operator SqlSingle(SqlMoney x) {
264public static implicit operator SqlSingle(SqlDecimal x) {
277public static explicit operator SqlSingle(SqlDouble x) {
286public static explicit operator SqlSingle(SqlString x) {
288return SqlSingle.Null;
296public static SqlBoolean operator==(SqlSingle x, SqlSingle y) {
303public static SqlBoolean operator!=(SqlSingle x, SqlSingle y) {
310public static SqlBoolean operator<(SqlSingle x, SqlSingle y) {
317public static SqlBoolean operator>(SqlSingle x, SqlSingle y) {
324public static SqlBoolean operator<=(SqlSingle x, SqlSingle y) {
331public static SqlBoolean operator>=(SqlSingle x, SqlSingle y) {
340public static SqlSingle Add(SqlSingle x, SqlSingle y) {
344public static SqlSingle Subtract(SqlSingle x, SqlSingle y) {
349public static SqlSingle Multiply(SqlSingle x, SqlSingle y) {
354public static SqlSingle Divide(SqlSingle x, SqlSingle y) {
359public static SqlBoolean Equals(SqlSingle x, SqlSingle y) {
364public static SqlBoolean NotEquals(SqlSingle x, SqlSingle y) {
369public static SqlBoolean LessThan(SqlSingle x, SqlSingle y) {
374public static SqlBoolean GreaterThan(SqlSingle x, SqlSingle y) {
379public static SqlBoolean LessThanOrEqual(SqlSingle x, SqlSingle y) {
384public static SqlBoolean GreaterThanOrEqual(SqlSingle x, SqlSingle y) {
438if (value is SqlSingle) {
439SqlSingle i = (SqlSingle)value;
443throw ADP.WrongType(value.GetType(), typeof(SqlSingle));
446public int CompareTo(SqlSingle value) {
464if (!(value is SqlSingle)) {
468SqlSingle i = (SqlSingle)value;
527public static readonly SqlSingle Null = new SqlSingle(true);
531public static readonly SqlSingle Zero = new SqlSingle((float)0.0);
535public static readonly SqlSingle MinValue = new SqlSingle(Single.MinValue);
539public static readonly SqlSingle MaxValue = new SqlSingle(Single.MaxValue);