DekGenius.com
[ Team LiB ] Previous Section Next Section

SqlSingle

System.Data.SqlTypes (system.data.dll) struct

A structure that represents a floating-point value ranging from -3.40E38 to 3.40E38. It maps to the SQL Server real data type.

public struct SqlSingle : INullable, IComparable {
// Public Constructors
   public SqlSingle( double value);  
   public SqlSingle( float value);  
// Public Static Fields
   public static readonly SqlSingle MaxValue;                  // =3.402823E+38
   public static readonly SqlSingle MinValue;                  // =-3.402823E+38
   public static readonly SqlSingle Null;                      // =Null
   public static readonly SqlSingle Zero;                      // =0
// Public Instance Properties
   public bool IsNull{get; }                                   // implements INullable
   public float Value{get; } 
// Public Static Methods
   public static SqlSingle Add( SqlSingle x, SqlSingle y);  
   public static SqlSingle Divide( SqlSingle x, SqlSingle y);  
   public static SqlBoolean Equals(SqlSingle x, SqlSingle y);  
   public static SqlBoolean GreaterThan(SqlSingle x, SqlSingle y);
   public static SqlBoolean GreaterThanOrEqual(SqlSingle x, SqlSingle y);
   public static SqlBoolean LessThan(SqlSingle x, SqlSingle y);
   public static SqlBoolean LessThanOrEqual(SqlSingle x, SqlSingle y);
   public static SqlSingle Multiply(SqlSingle x, SqlSingle y);
   public static SqlBoolean NotEquals(SqlSingle x, SqlSingle y);
   public static SqlSingle Parse( string s);  
   public static SqlSingle Subtract(SqlSingle x, SqlSingle y);
   public static SqlSingle operator *(SqlSingle x, SqlSingle y);
   public static SqlSingle operator /(SqlSingle x, SqlSingle y);
   public static SqlSingle operator -( SqlSingle x);  
   public static SqlSingle operator -(SqlSingle x, SqlSingle y);
   public static SqlSingle operator +(SqlSingle x, SqlSingle y); 
   public static SqlBoolean operator !=(SqlSingle x, SqlSingle y);
   public static SqlBoolean operator <(SqlSingle x, SqlSingle y);
   public static SqlBoolean operator <=(SqlSingle x,  SqlSingle y);
   public static SqlBoolean operator ==(SqlSingle x, SqlSingle y);
   public static SqlBoolean operator >(SqlSingle x, SqlSingle y);
   public static SqlBoolean operator >=(SqlSingle x, SqlSingle y);
   public static explicit operator float( SqlSingle x);  
   public static explicit operator SqlSingle( SqlBoolean x);  
   public static explicit operator SqlSingle( SqlDouble x);  
   public static explicit operator SqlSingle( SqlString x);  
   public static implicit operator SqlSingle( float x);  
   public static implicit operator SqlSingle( SqlByte x);  
   public static implicit operator SqlSingle( SqlDecimal x);  
   public static implicit operator SqlSingle( SqlInt16 x);  
   public static implicit operator SqlSingle( SqlInt32 x);  
   public static implicit operator SqlSingle( SqlInt64 x);  
   public static implicit operator SqlSingle( SqlMoney x);  
// Public Instance Methods
   public int CompareTo( object value);                        // implements IComparable
   public override bool Equals( object value);                 // overrides ValueType
   public override int GetHashCode(  );                          // overrides ValueType
   public SqlBoolean ToSqlBoolean(  );  
   public SqlByte ToSqlByte(  );  
   public SqlDecimal ToSqlDecimal(  );  
   public SqlDouble ToSqlDouble(  );  
   public SqlInt16 ToSqlInt16(  );  
   public SqlInt32 ToSqlInt32(  );  
   public SqlInt64 ToSqlInt64(  );  
   public SqlMoney ToSqlMoney(  );  
   public SqlString ToSqlString(  );  
   public override string ToString(  );                          // overrides ValueType
}

Hierarchy

System.Object figs/U2192.gif System.ValueType figs/U2192.gif SqlSingle(INullable, System.IComparable)

Returned By

System.Data.SqlClient.SqlDataReader.GetSqlSingle( ) , SqlBoolean.ToSqlSingle( ) , SqlByte.ToSqlSingle( ) , SqlDecimal.ToSqlSingle( ) , SqlDouble.ToSqlSingle( ) , SqlInt16.ToSqlSingle( ) , SqlInt32.ToSqlSingle( ) , SqlInt64.ToSqlSingle( ) , SqlMoney.ToSqlSingle( ) , SqlString.ToSqlSingle( )

    [ Team LiB ] Previous Section Next Section