本文整理汇总了C#中System.Data.SqlTypes.SqlByte.GetHashCode方法的典型用法代码示例。如果您正苦于以下问题:C# SqlByte.GetHashCode方法的具体用法?C# SqlByte.GetHashCode怎么用?C# SqlByte.GetHashCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Data.SqlTypes.SqlByte
的用法示例。
在下文中一共展示了SqlByte.GetHashCode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetHashCodeTest
public void GetHashCodeTest()
{
SqlByte TestByte15 = new SqlByte(15);
SqlByte TestByte216 = new SqlByte(216);
Assert.Equal(15, TestByte15.GetHashCode());
Assert.Equal(216, TestByte216.GetHashCode());
}
示例2: GetHashCodeTest
public void GetHashCodeTest()
{
SqlByte TestByte15 = new SqlByte(15);
SqlByte TestByte216 = new SqlByte(216);
Assert.AreEqual(15, TestByte15.GetHashCode(), "GetHashCode method 1" + Error);
Assert.AreEqual(216, TestByte216.GetHashCode(), "GetHashCode method 2" + Error);
}
示例3: GetHashCodeTest
public void GetHashCodeTest()
{
SqlByte TestByte15 = new SqlByte(15);
SqlByte TestByte216 = new SqlByte(216);
AssertEquals("GetHashCode method 1" + Error, 15, TestByte15.GetHashCode());
AssertEquals("GetHashCode method 2" + Error, 216, TestByte216.GetHashCode());
}