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
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
Methods
Deserialize(Stream)
Recreates an object from a stream.
public object Deserialize(Stream sourceStream)
Parameters
sourceStream
StreamThe Stream to deserialize from.
Returns
- object
The recreated object.
Deserialize(string)
Recreates an object from a string.
public object Deserialize(string sourceString)
Parameters
sourceString
stringThe 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
stringThe 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
UriThe 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
objectThe 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
objectThe object to be serialized.
targetStream
StreamThe 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)