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

text

Glossary Item Box

Initailizes the Crc32 value to the checksum of the string as a series of 16-bit values

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal text As String _
)
C# 
public Crc32( 
   string text
)

Parameters

text

Example

Library/Library.Test/TestCrc32.cs

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