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

x
y

Glossary Item Box

Compares the two objects for equality

Syntax

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

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

Generated with Document! X 2011 by Innovasys