MyMediaLite  3.11
Static Public Member Functions | List of all members
FileSerializer Class Reference

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

Static Public Member Functions

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

Detailed Description

Static class for serializing objects to binary files

Member Function Documentation

static bool CanWrite ( string  filename)
inlinestatic

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)
inlinestatic

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 
)
inlinestatic

Serialize the specified object to a binary file

Parameters
object_to_serializeobject to serialize
filenamename of the file to save to
static bool Should ( IMapping  user_mapping,
IMapping  item_mapping 
)
inlinestatic

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: