本文整理汇总了C#中System.Data.SqlTypes.SqlInt64.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# SqlInt64.Equals方法的具体用法?C# SqlInt64.Equals怎么用?C# SqlInt64.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Data.SqlTypes.SqlInt64
的用法示例。
在下文中一共展示了SqlInt64.Equals方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EqualsMethod
public void EqualsMethod()
{
SqlInt64 Test0 = new SqlInt64(0);
SqlInt64 Test158 = new SqlInt64(158);
SqlInt64 Test180 = new SqlInt64(180);
SqlInt64 Test180II = new SqlInt64(180);
Assert.True(!Test0.Equals(Test158));
Assert.True(!Test158.Equals(Test180));
Assert.True(!Test180.Equals(new SqlString("TEST")));
Assert.True(Test180.Equals(Test180II));
}
示例2: EqualsMethod
public void EqualsMethod ()
{
SqlInt64 Test0 = new SqlInt64 (0);
SqlInt64 Test158 = new SqlInt64 (158);
SqlInt64 Test180 = new SqlInt64 (180);
SqlInt64 Test180II = new SqlInt64 (180);
Assert.IsTrue (!Test0.Equals (Test158), "#G01");
Assert.IsTrue (!Test158.Equals (Test180), "#G01");
Assert.IsTrue (!Test180.Equals (new SqlString ("TEST")), "#G03");
Assert.IsTrue (Test180.Equals (Test180II), "#G04");
}
示例3: EqualsMethod
public void EqualsMethod()
{
SqlInt64 Test0 = new SqlInt64 (0);
SqlInt64 Test158 = new SqlInt64 (158);
SqlInt64 Test180 = new SqlInt64 (180);
SqlInt64 Test180II = new SqlInt64 (180);
Assert ("#G01", !Test0.Equals (Test158));
Assert ("#G01", !Test158.Equals (Test180));
Assert ("#G03", !Test180.Equals (new SqlString ("TEST")));
Assert ("#G04", Test180.Equals (Test180II));
}