C# Class Sage.Sis.Sdata.Etag.Crc.Crc32EtagProvider

Get the CRC-32 Value for an object. The object is serialized to a string value by a given implementation of IEtagSerializer.
Inheritance: IEtagProvider
Datei anzeigen Open project: Sage/SData-Contracts

Public Methods

Method Description
Crc32EtagProvider ( IEtagSerializer serializer ) : System

Initializes a new instance of the Crc32EtagProvider class with a serializer..

Private Methods

Method Description
Create ( byte buffer ) : double
IEtagProvider ( object obj ) : string

Get the crc32 value for an object.

1. The object is serialized to a string value by the given implementation of IEtagSerializer. 2. The serialized string value is encoded to a byte array using the 1252 code page. 3. The byte array is computed to a crc-32 value. 4. The crc-32 value is converted to a string representation.

Method Details

Crc32EtagProvider() public method

Initializes a new instance of the Crc32EtagProvider class with a serializer..
public Crc32EtagProvider ( IEtagSerializer serializer ) : System
serializer IEtagSerializer The serializer.
return System