FileSerializer Class Reference

Static class for serializing objects to binary files. More...

List of all members.

Static Public Member Functions

static bool CanWrite (string filename)
 Determine whether we can write our data to the disk.
static ISerializable Deserialize (string filename)
 Deserialize an object from a binary file.
static void Serialize (this ISerializable object_to_serialize, string filename)
 Serialize the specified object to a binary file.
static bool Should (IEntityMapping user_mapping, IEntityMapping item_mapping)
 Determine from the mapping objects whether we should serialize the data or not.

Detailed Description

Static class for serializing objects to binary files.


Member Function Documentation

static bool CanWrite ( string  filename  )  [inline, static]

Determine whether we can write our data to the disk.

Returns:
true if we can write to filename; otherwise, false
Parameters:
filename name of the file to write to
static ISerializable Deserialize ( string  filename  )  [inline, static]

Deserialize an object from a binary file.

Parameters:
filename name of the file to load from
static void Serialize ( this ISerializable  object_to_serialize,
string  filename 
) [inline, static]

Serialize the specified object to a binary file.

Parameters:
object_to_serialize object to serialize
filename name of the file to save to
static bool Should ( IEntityMapping  user_mapping,
IEntityMapping  item_mapping 
) [inline, static]

Determine from the mapping objects whether we should serialize the data or not.

Returns:
true if we should serialize; otherwise, false
Parameters:
user_mapping user ID mapping
item_mapping item ID mapping

The documentation for this class was generated from the following file:
Generated on Thu Apr 5 01:11:32 2012 for MyMediaLite by  doxygen 1.6.3