Compares the two objects for equality
Syntax
Visual Basic (Declaration) | |
---|
Overloads Public Operator =( _
ByVal x As Crc32, _
ByVal y As Crc32 _
) As Boolean |
Parameters
- x
- y
Example
Library/Library.Test/TestCrc32.cs
C# | Copy Code |
---|
Crc32 empty = new Crc32();
Crc32 value = new Crc32("Hello");
Crc32 copy = new Crc32(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 Crc32()
Dim value As New Crc32("Hello")
Dim copy As New Crc32(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