CSharpTest.Net
Equals(Int64) Method
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IO Namespace > Crc64 Structure > Equals Method : Equals(Int64) Method

crc64

Glossary Item Box

Returns true if the CRC64 provided is equal to this one

Syntax

Visual Basic (Declaration) 
Public Overloads Function Equals( _
   ByVal crc64 As Long _
) As Boolean
C# 
public bool Equals( 
   long crc64
)

Parameters

crc64

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.Equals(copy));
Assert.IsFalse(value.Equals(empty));
Assert.IsTrue(value.Equals(copy.Value));
Assert.IsFalse(value.Equals(empty.Value));

Assert.IsTrue(value.Equals((object)copy));
Assert.IsFalse(value.Equals((object)empty));
Assert.IsTrue(value.Equals((object)copy.Value));
Assert.IsFalse(value.Equals((object)empty.Value));
VB.NETCopy Code
Dim empty As New Crc64()
Dim value As New Crc64("Hello")
Dim copy As New Crc64(value.Value)

Assert.IsTrue(value.Equals(copy))
Assert.IsFalse(value.Equals(empty))
Assert.IsTrue(value.Equals(copy.Value))
Assert.IsFalse(value.Equals(empty.Value))

Assert.IsTrue(value.Equals(DirectCast(copy, Object)))
Assert.IsFalse(value.Equals(DirectCast(empty, Object)))
Assert.IsTrue(value.Equals(DirectCast(copy.Value, Object)))
Assert.IsFalse(value.Equals(DirectCast(empty.Value, Object)))

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys