Click or drag to resize

GZipSerializer Class

Serializer compressing and decompressing data.
Inheritance Hierarchy
SystemObject
  Eneter.Messaging.DataProcessing.SerializingGZipSerializer

Namespace:  Eneter.Messaging.DataProcessing.Serializing
Assembly:  Eneter.Messaging.Framework (in Eneter.Messaging.Framework.dll) Version: 8.0.0.0 (8.0.0.0)
Syntax
public class GZipSerializer : ISerializer

The GZipSerializer type exposes the following members.

Constructors
  NameDescription
Public methodGZipSerializer
Constructs the serializer with XmlStringSerializer as the underlying serializer.
Public methodGZipSerializer(ISerializer)
Constructs the serializer with the given underlying serializer.
Top
Methods
  NameDescription
Public methodDeserialize_T
Deserializes compressed data into the specified type.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSerialize_T
Serializes the given data with using the compression.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
The serializer internally uses GZipStream to compress and decompress data.
Examples
Example shows how to serialize data.
// Creat the serializer.
GZipSerializer aSerializer = new GZipSerializer();

// Create some data to be serialized.
MyData aData = new MyData();
...

// Serialize data. Serialized data will be compressed.
object aSerializedData = aSerializer.Serialize<MyData>(aData);
See Also