CSharpTest.Net
Crc32 Structure
Members  Example  See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IO Namespace : Crc32 Structure

Glossary Item Box

Provides a simple CRC32 checksum for a set of bytes

Syntax

Visual Basic (Declaration) 
Public Structure Crc32 
   Inherits System.ValueType
C# 
public struct Crc32 : System.ValueType 

Example

Library/Library.Test/TestCrc32.cs

C#Copy Code
Assert.AreEqual("00000000", new Crc32().ToString());
Assert.AreEqual("00100100", new Crc32(0x00100100).ToString());
Assert.AreEqual("F0100100", new Crc32(unchecked((int)0xF0100100)).ToString());
VB.NETCopy Code
Assert.AreEqual("00000000", New Crc32().ToString())
Assert.AreEqual("00100100", New Crc32(&H100100).ToString())
Assert.AreEqual("F0100100", New Crc32(DirectCast(&Hf0100100UI, Integer)).ToString())

Inheritance Hierarchy

System.Object
   System.ValueType
      CSharpTest.Net.IO.Crc32

Requirements

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

See Also

Generated with Document! X 2011 by Innovasys