Table of Contents

Class GeoSerializer

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

This class serializes an object.

public class GeoSerializer
Inheritance
GeoSerializer
Inherited Members

Constructors

GeoSerializer()

Creates an instance of GeoSerializer.

public GeoSerializer()

GeoSerializer(GeoSerializationFormatter)

public GeoSerializer(GeoSerializationFormatter formatter)

Parameters

formatter GeoSerializationFormatter

Properties

Formatter

Gets or sets the Formatter. The Formatter determines what kind of serialized data will be created.

public GeoSerializationFormatter Formatter { get; set; }

Property Value

GeoSerializationFormatter

Methods

Deserialize(Stream)

Recreates an object from a stream.

public object Deserialize(Stream sourceStream)

Parameters

sourceStream Stream

The Stream to deserialize from.

Returns

object

The recreated object.

Deserialize(string)

Recreates an object from a string.

public object Deserialize(string sourceString)

Parameters

sourceString string

The string to deserialize from.

Returns

object

The recreated object.

Deserialize(string, FileAccess)

Recreates an object from a file.

public object Deserialize(string sourcePathFilename, FileAccess readWriteMode)

Parameters

sourcePathFilename string

The file path to deserialize from.

readWriteMode FileAccess

Returns

object

The recreated object.

Deserialize(Uri)

Recreates an object from an Url.

public object Deserialize(Uri sourceUri)

Parameters

sourceUri Uri

The Url to deserialize from.

Returns

object

The recreated object.

Serialize(object)

Serialize an object and save the serialized data to a string.

public string Serialize(object objectToSerialize)

Parameters

objectToSerialize object

The object to be serialized.

Returns

string

The string that contains the serialized data.

Serialize(object, Stream)

Serialize an object and save the serialized data to a stream.

public void Serialize(object objectToSerialize, Stream targetStream)

Parameters

objectToSerialize object

The object to be serialized.

targetStream Stream

The stream to save the serialized data into.

Serialize(object, string)

Serialize an object and save the serialized data to a file.

public void Serialize(object objectToSerialize, string targetPathFilename)

Parameters

objectToSerialize object

The object to be serialized.

targetPathFilename string

The path to save the serialized data to.