CSharpTest.Net
Inequality(Crc64,Crc64) Operator
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IO Namespace > Crc64 Structure > Inequality Operator : Inequality(Crc64,Crc64) Operator

x
y

Glossary Item Box

Compares the two objects for equality

Syntax

Visual Basic (Declaration) 
Overloads Public Operator <>( _
   ByVal x As Crc64, _
   ByVal y As Crc64 _
) As Boolean
C# 
public bool operator !=( 
   Crc64 x,
   Crc64 y
)

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.NETCopy 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

Generated with Document! X 2011 by Innovasys