示例#1
0
        private static void WriteFloat(double?value, ushort nbBits, string myFileName)
        {
            BinaryWriter writer = BCPTests.CreateBinaryFile(myFileName);

            SQLFloat sql = null;

            if (nbBits == 53)
            {
                sql = new SQLFloat();
            }
            else
            {
                sql = new SQLFloat(nbBits);
            }
            sql.Write(writer, value);

            writer.Close();
        }
示例#2
0
        private static void WriteFloat(double? value, ushort nbBits, string myFileName)
        {
            BinaryWriter writer = BCPTests.CreateBinaryFile(myFileName);

            SQLFloat sql = null;
            if (nbBits == 53)
            {
                sql = new SQLFloat();
            }
            else
            {
                sql = new SQLFloat(nbBits);
            }
            sql.Write(writer, value);

            writer.Close();
        }