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

chksum
text

Glossary Item Box

Adds a string to the checksum as a series of 16-bit values

Syntax

Visual Basic (Declaration) 
Overloads Public Operator +( _
   ByVal chksum As Crc64, _
   ByVal text As String _
) As Crc64
C# 
public Crc64 operator +( 
   Crc64 chksum,
   string text
)

Parameters

chksum
text

Example

Library/Library.Test/TestCrc64.cs

C#Copy Code
Crc64 all = new Crc64("hello there world");
Crc64 crc = new Crc64();
Assert.AreEqual(0, crc.Value);
crc += "hello ";
crc += "there ";
crc += "world";
Assert.AreEqual(all.Value, crc.Value);
VB.NETCopy Code
Dim all As New Crc64("hello there world")
Dim crc As New Crc64()
Assert.AreEqual(0, crc.Value)
crc += "hello "
crc += "there "
crc += "world"
Assert.AreEqual(all.Value, crc.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