Compares the two objects for equality
Syntax
Visual Basic (Declaration) | |
---|
Overloads Public Operator =( _
ByVal x As Crc64, _
ByVal y As Crc64 _
) As Boolean |
Parameters
- x
- y
Example
Library/Library.Test/TestCrc64.cs
C# | Copy Code |
---|
Crc64 empty = new Crc64();
Crc64 value = new Crc64("Hello");
Crc64 copy = new Crc64(value.Value);
Assert.IsTrue(value == copy);
Assert.IsFalse(value == empty);
Assert.IsTrue(value == copy.Value);
Assert.IsFalse(value == empty.Value);
Assert.IsFalse(value != copy);
Assert.IsTrue(value != empty);
Assert.IsFalse(value != copy.Value);
Assert.IsTrue(value != empty.Value); |
VB.NET | Copy Code |
---|
Dim empty As New Crc64()
Dim value As New Crc64("Hello")
Dim copy As New Crc64(value.Value)
Assert.IsTrue(value = copy)
Assert.IsFalse(value = empty)
Assert.IsTrue(value = copy.Value)
Assert.IsFalse(value = empty.Value)
Assert.IsFalse(value <> copy)
Assert.IsTrue(value <> empty)
Assert.IsFalse(value <> copy.Value)
Assert.IsTrue(value <> empty.Value) |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also