本文整理汇总了C#中System.Data.SqlTypes.SqlByte.ToSqlDouble方法的典型用法代码示例。如果您正苦于以下问题:C# SqlByte.ToSqlDouble方法的具体用法?C# SqlByte.ToSqlDouble怎么用?C# SqlByte.ToSqlDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Data.SqlTypes.SqlByte
的用法示例。
在下文中一共展示了SqlByte.ToSqlDouble方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ToSqlDouble
public void ToSqlDouble()
{
SqlByte TestByte12 = new SqlByte(12);
SqlByte TestByte0 = new SqlByte(0);
SqlByte TestByte228 = new SqlByte(228);
Assert.AreEqual((double)12, TestByte12.ToSqlDouble().Value, "ToSqlDouble method 1" + Error);
Assert.AreEqual((double)0, TestByte0.ToSqlDouble().Value, "ToSqlDouble method 2" + Error);
Assert.AreEqual((double)228, TestByte228.ToSqlDouble().Value, "ToSqlDouble method 3" + Error);
}
示例2: ToSqlDouble
/// <summary>Converts the value from <c>SqlByte</c> to an equivalent <c>SqlDouble</c> value.</summary>
public static SqlDouble ToSqlDouble(SqlByte p) { return p.ToSqlDouble(); }
示例3: ToSqlDouble
/// <summary>
/// Converts the value of the specified SqlByte to its equivalent SqlDouble representation.
/// </summary>
/// <param name="value">An SqlByte.</param>
/// <returns>The equivalent SqlDouble.</returns>
public static SqlDouble ToSqlDouble(SqlByte value) { return value.ToSqlDouble(); }
示例4: ToSqlDouble
public void ToSqlDouble()
{
SqlByte TestByte12 = new SqlByte(12);
SqlByte TestByte0 = new SqlByte(0);
SqlByte TestByte228 = new SqlByte(228);
Assert.Equal(12, TestByte12.ToSqlDouble().Value);
Assert.Equal(0, TestByte0.ToSqlDouble().Value);
Assert.Equal(228, TestByte228.ToSqlDouble().Value);
}