Class GeoSerializer
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
formatterGeoSerializationFormatter
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
Methods
Deserialize(Stream)
Recreates an object from a stream.
public object Deserialize(Stream sourceStream)
Parameters
sourceStreamStreamThe Stream to deserialize from.
Returns
- object
The recreated object.
Deserialize(string)
Recreates an object from a string.
public object Deserialize(string sourceString)
Parameters
sourceStringstringThe 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
sourcePathFilenamestringThe file path to deserialize from.
readWriteModeFileAccess
Returns
- object
The recreated object.
Deserialize(Uri)
Recreates an object from an Url.
public object Deserialize(Uri sourceUri)
Parameters
sourceUriUriThe 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
objectToSerializeobjectThe 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
objectToSerializeobjectThe object to be serialized.
targetStreamStreamThe 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)