MyMediaLite  3.01
Static Public Member Functions
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:
filenamename of the file to write to
static ISerializable Deserialize ( string  filename) [inline, static]

Deserialize an object from a binary file.

Parameters:
filenamename 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_serializeobject to serialize
filenamename 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_mappinguser ID mapping
item_mappingitem ID mapping

The documentation for this class was generated from the following file: