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